Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Extend a rope when the attached object shot from a position
#2
(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.

[Image: Screenshot-1.png]



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,
Reply


Messages In This Thread
RE: Extend a rope when the attached object shot from a position - by josemendez - 20-09-2022, 09:58 AM