Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Why does setting InverseMass to zero on a single particle freeze all particles?
#7
Removing the fluid flag from the particle phase at runtime works well:

Code:
solver.phases[particleIndex] &= (int)(~Oni.ParticleFlags.Fluid);

This turns the particle into a granular. However, it will still be part of the fluid emitter and rendered as such by the fluid renderer (as rendering is done emitter-wise, not particle-wise), so depending on how you want to approach rendering the solidified ones this might be inconvenient.

I'm working on a sample scene that implements this, so that I can feel any potential issues/hardships of this use case in my own flesh Sonrisa
Reply


Messages In This Thread
RE: Why does setting InverseMass to zero on a single particle freeze all particles? - by josemendez - 09-04-2021, 02:06 PM