get a rigidbody rope move with my character

hey I’m trying to make a rope i made (from 10 cubes connected with hinge joints ) move with my character. the character is a rigidbody and each cube from the rope is also rigidbody.
what can i do to make both the rope and the character move together.
please help

3 Answers

3

Try to parent it to the top of your ladder when you are in climb mode.

The rope is a part of the character it needs to go wherever the player is moving

Add a new script to the rope telling it to move with the character. If you want a follow effect, attach this script only to the top cube of the rope. If you want all of them to move at once, attach this script to the rope’s parent.

public GameObject player; // get the player reference

void Update () {
    transform.position = player.transform.position;
}

I did exactly that wolfdog. It's not working probably because of the rigidbody attached to each chain of the rope

Did you try to place the script on the first chain of the rope?

I recently published an asset that could help you accomplish this if you are still interested:

Any feedback is appreciated!