Obi Official Forum
Help Change of rope size - 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 Change of rope size (/thread-801.html)



Change of rope size - guada_palau - 26-12-2018

Hello! I'm working on a project in vr and I'm using the rope. I have the problem shown in the photo, when I grab to hook and stretch it, the string is separated from it at a certain point. I am using the ObiRopeCursor component but I do not understand it in its entirety. Is there any way to fix it?

Thank you


RE: Change of rope size - josemendez - 27-12-2018

(26-12-2018, 03:39 PM)guada_palau Wrote: Hello! I'm working on a project in vr and I'm using the rope. I have the problem shown in the photo, when I grab to hook and stretch it, the string is separated from it at a certain point. I am using the ObiRopeCursor component but I do not understand it in its entirety. Is there any way to fix it?

Thank you

Hi,

I'm not entirely sure I've understood your question.

ObiRopeCursor is used to change the length of the rope programmatically via its ChangeLength() method (see the Crane sample scene). This does not have much to do with your gap problem.

If you overstretch the rope by fixing it to two objects and then separating them a distance longer than the rope, the rope will stretch and leave gaps. No way to prevent this, as rope cannot apply forces back to resist tension unless it is pinned to rigibbodies, using pin constraints. If you're already using pin constraints, then you can reduce the gap by increasing the amount of pin constraint iterations, or reducing the tilmestep.

I'd recommend reading this:
http://obi.virtualmethodstudio.com/tutorials/attachments.html
http://obi.virtualmethodstudio.com/tutorials/pinconstraints.html