09-09-2022, 07:59 AM
(07-09-2022, 05:10 PM)TheRitcher Wrote: Hello,
one way I use to take control of particles (in this case to pull the around) is to set the inverse mass to 0. This method works very well, the "locked" particles are stable and do what I tell them to do but in the specific case of a softbody (not observable on ObiRope), the particles around those whose inverse mass I've set to 0, are very unstable: their position but mostly their orientation keeps changing wildly and make the softbody look broken at the "grabbed" boundary (meaning the boundary of the set of particles that now have inverse mass = 0).
I am calling actor.UpdateParticleProperties() whenever the inverse mass of particles is set (or set back to its original value), additionally I tried to call actor.SetConstraintsDirty(Oni.ConstraintType.ShapeMatching) but it made no difference.
Important to say that I am using the vertex method in the blueprint and I have 1 bone per particle so I think the problem might also be related to the skinner (and I've tried to bind the mesh with different parameters).
Any ideas?
Thanks all!
Hi there!
Sound strange! would it be possible to take a look at your blueprint, as well as the code you're using to "grab" the particles? This method you describe (setting inverse masses to zero to pull particles around) sounds very similar to what the ObiContactGrabber utility component does, but so far I've been unable to reproduce any instabilities/jittering or similar behavior with it.
kind regards,