10-12-2020, 09:31 PM
(This post was last modified: 11-12-2020, 08:26 AM by josemendez.)
(10-12-2020, 08:51 PM)picross Wrote: Thanks so much for the detailed response, it makes a lot of sense.
I like your idea of converting the force from world space to solver space. I'm not quite sure how to approach it, though. Currently, we are applying a force to the softbody in the solver with ObiActor.AddForce and a ForceMode of acceleration:
_acceleration is just a float set to 3.0f.Code:_softbody.AddForce(Vector3.forward * _acceleration, ForceMode.Acceleration);
Any ideas?
Hi,
The way you transform vectors from world space to local space in Unity is by using: https://docs.unity3d.com/ScriptReference...ector.html