20-09-2022, 09:58 AM
(19-09-2022, 01:08 PM)lacasrac Wrote: Basically I have a rope and I attached a Sphere on it with colliders and rigidbody on the end.
I want to shot it with the rigidbody's addForce with the red line angle. But in this time I want to increase the rope's length.
What is the correct way to to this?
Hi there,
Depends on what you want to do exactly. Do you want the rope to be simulated as the rigidbody flies around, you can measure the distance between the point where the rope is shot from and call cursor.ChangeLength() (see: http://obi.virtualmethodstudio.com/manua...ursor.html)
Or, if you want the rope to be a straight line that follows the rigidbody and starts simulating once the rigidbody hits something, you can use the technique shown in the "RopeGrapplingHook" sample scene.
kind regards,