Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Help  Grabbing rope and releasing it at a specific point
#1
Hello, I am very new to Obi Rope. There is a pulley object in my 3D scene. My player should grab the end of the rope when it collides with pulley and carry the rope in its hand. And when it collides with target object it should place the rope to a specific point on the target object.

My rope has 2 Obi Particle Attachments. One of them is attached statically to the pulley. When I collide with pulley, I set the 2nd dynamic attachment target to my player's hand transform in script, but I get the error below.

What's wrong with my approach ?

ArgumentOutOfRangeException: Index was out of range. Must be non-negative and less than the size of the collection.
Parameter name: index
Reply
#2
Hi there,

Can you share the code you're using to attach the rope attachment to your player's hand?

Also, would you please share the full error message (with stack trace)?

kind regards
Reply