23-09-2020, 02:54 PM
(This post was last modified: 23-09-2020, 03:21 PM by josemendez.)
(23-09-2020, 02:53 PM)Aento Wrote: I join to this question.
I found in older version class ObiGrabCollider that's do this, but in some of versions he was removed.
So guys, do you have something similar to this?
Nizmo's script is needlessly convoluted, as it uses pin constraints (which aren't needed at all since there's no two-way coupling possible between the controller and the rope).
Instead, use the particle API:
http://obi.virtualmethodstudio.com/tutor...icles.html
Setting a particle's inverse mass to zero will make it static, allowing you to override its position any way you need.
You can also use collision callbacks to detect when a particle is in contact with a collider/trigger:
http://obi.virtualmethodstudio.com/tutor...sions.html