27-03-2023, 11:12 AM
(This post was last modified: 27-03-2023, 11:12 AM by josemendez.)
(26-03-2023, 11:57 PM)blobman Wrote: What is a good approach to later release the softbody particles from the anchor?
I tried saving a copy of `velocities` and `invMasses` prior to setting them to 0, and then restoring them on the actor's solver when some callback gets invoked. This did not seem to work.
Hi!
Make sure to call UpdateParticleProperties() on a softbody after modifying its particle properties. This is needed for softbodies only, because the rest shape configuration of the softbody needs to be updated if the mass or position of particles are modified.
See the ObiContactGrabber.cs sample script for reference.
(26-03-2023, 11:57 PM)blobman Wrote: or is there a way to disable gravity on the exclusively on the softbody particles?
You can disable gravity for the entire solver by setting it to zero, and then implement your own gravity by adding a custom acceleration to particles of your choice. (that is, increasing their velocity)
let me know if you need further help,