Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Rope pulling problem
#3
(29-08-2022, 05:43 PM)josemendez Wrote: Hi!

Well, this depends on a lot of things:
- Where's the cursor placed along the rope?
- Are you setting the length instantly (in a single frame) or over multiple frames?
- What's the mass of the rope compared to the mass of the player?

If your rope is heavy compared to the player and the length is changes in a single frame, then the player will be catapulted towards the shot rigidbody, this is the expected behavior. Imagine launching a projectile to which you're attached via a heavy chain, the combined inertia of the chain + the projectile would pull from you.

You can check out the included RopeGrapplingHook sample scene for an example of how to implement a grappling hook.

kind regards,
Thank you for your response josemendez!

1. Where should the cursor be located along the rope?
2. I'm setting the length of the rope in the update function until the rigidbody at the end of the rope collides with something.
3. They are the same mass. I tried increasing the mass of the player but the rope becomes too stretchy (even after all your suggestions for increasing rope stiffness).

Is there a way to cancel the rope velocity at the frame which the rigidbody collides?
Reply


Messages In This Thread
Rope pulling problem - by shaylavi - 29-08-2022, 04:24 PM
RE: Rope pulling problem - by josemendez - 29-08-2022, 05:43 PM
RE: Rope pulling problem - by shaylavi - 29-08-2022, 06:17 PM
RE: Rope pulling problem - by josemendez - 30-08-2022, 07:21 AM