20-12-2025, 01:06 AM
(08-12-2025, 09:24 AM)josemendez Wrote: Correct. The usual way to do this is to store the inverse mass of the particle in a helper variable, and set the inverse mass to zero. Then once you want the particle to resume movement, set it back to the value stored in the helper variable.
You could find *all* constraints affecting the particle(s) and disable them. This is considerably more complex (and costly) than dealing with the particle's inverse mass, though, as it involves iterating trough every constraint in every batch of every type of constraint and find those that reference a specific particle. Let me know if you need help with this.
Kind regards,
Hello
First of all I want to apologize for the late reply.
I would indeed love some help in writing a function which would find *all* constraints affecting particle(s) and disable them. I would outline the capabilities I would like out of the function below.
I would like a function that I can call at an arbitrary frame which would preserve the current positions but will clear the velocities given there are no collisions happening so that the particle(s) do not move until and unless external stimulus is applied to them again which could be collision/gravity/wind etc.
Please let me know what I can do to be of service for this.
Thanks and Happy Holidays!
Aroosh
