24-02-2021, 10:35 AM
(23-02-2021, 12:45 PM)josemendez Wrote: Edit: if the idea is to have one kinematic rigidbody per particle, and then use these for collision detection and grabbing, that's not a good one imho. Particles already perform collision detection and can be pinned to any position of a body, so this is just reinventing the wheel. Having a rigidbody per particle won't be very performant, either. A good solution is to iterate over contacts, find the one closest to the hand, and pin it (as Xanduffy's code does).
I have used that code but the rope behaves unexpectedly when grabbing. It rotates at the point of grab and this affects the whole rope