Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Weird physics behavior when using AddForce and changing scale of Solver
#4
(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:
Code:
_softbody.AddForce(Vector3.forward * _acceleration, ForceMode.Acceleration);
_acceleration is just a float set to 3.0f.

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
Reply


Messages In This Thread
RE: Weird physics behavior when using AddForce and changing scale of Solver - by josemendez - 10-12-2020, 09:31 PM