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

Do you know why the fluid particles are moving when i am moving the solver transform through the editor and simulate in local space is checked with 0 velocity?

The solver object also has severalĀ obi colliders attached to it.


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.
Reply


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