15-12-2020, 08:15 AM
(13-12-2020, 02:20 AM)picross Wrote: Alright, so I tried doing this and scaling the force by the size to different degrees, but it seems to always exhibit the same behavior. For example, I tried squaring the force vector I plugged in and it still started reversing at around the same time (but at faster speeds).It appears we were able to solve most of our problems by moving the tube towards the player instead of moving the player, thus circumventing all the problems we were having in the first place.
This is what I changed the code to:
It is definitely scaling the vector, but the same behavior seems to happen.Code:_softbody.AddForce(_softbody.solver.transform.InverseTransformVector(Vector3.forward * _acceleration), ForceMode.Acceleration);
This is the behavior without scaling the force vector based on transform scale:
And this is what happens when using the scaled force vector with the code above:
Should I be manipulating this force vector in some other way, or should I take another approach altogether?
Thanks again for the help!