Obi Official Forum
Help Grabbing rope and releasing it at a specific point - Printable Version

+- Obi Official Forum (https://obi.virtualmethodstudio.com/forum)
+-- Forum: Obi Users Category (https://obi.virtualmethodstudio.com/forum/forum-1.html)
+--- Forum: Obi Rope (https://obi.virtualmethodstudio.com/forum/forum-4.html)
+--- Thread: Help Grabbing rope and releasing it at a specific point (/thread-3337.html)



Grabbing rope and releasing it at a specific point - sy1997 - 25-02-2022

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


RE: Grabbing rope and releasing it at a specific point - josemendez - 28-02-2022

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