Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Why are fluid particles jumping around when simulating in local space?
#3
(06-08-2019, 08:49 AM)josemendez Wrote: Hi,

The collider position when you drag them around is updated in Update(), but the simulation takes place in FixedUpdate() which takes place earlier in the frame. So this means colliders move after the solver has finished the simulation for the current frame, pushing the particles around the next frame. Try moving the solver in FixedUpdate (note that this should be done in your own code, as you cannot modify Unity's translate gizmos behavior), and setting the update order to AfterFixedUpdate.

Thank you for the quick response, I will try that.
Reply


Messages In This Thread
RE: Why are fluid particles jumping around when simulating in local space? - by bobby - 06-08-2019, 09:20 AM