23-02-2021, 12:42 PM
(22-02-2021, 12:21 PM)josemendez Wrote: Dynamic particle attachments create pin constraints for individual particles under the hood, so it's exactly the same as you manually creating pin constraints, only more convoluted.
There should not be any digression if the attachment (or pin constraints) are properly set up: no pin constraints inside colliders, appropriate offset passed to the pin constraint, etc.
Grabbing one particle will only set the velocity for that one particle, it can't possible affect other particles directly. The rest of particles will move as a result of distance/bend constraints in the rope.
So I created a script which enables and disables Kinematic and Particle attachments based on the "node" grabbed. I want the kinematic nodes to follow the transform of the closest Particle. How can I achieve that via script ?