Obi Official Forum
Help Link two Obi objects with Rope - Printable Version

+- Obi Official Forum (https://obi.virtualmethodstudio.com/forum)
+-- Forum: Obi Users Category (https://obi.virtualmethodstudio.com/forum/forum-1.html)
+--- Forum: Obi Cloth (https://obi.virtualmethodstudio.com/forum/forum-2.html)
+--- Thread: Help Link two Obi objects with Rope (/thread-477.html)



Link two Obi objects with Rope - matchalover - 10-03-2018

I want to make a link between two Obi objects with rope but when i pull the rope to the left, the rope seems to jump out of the Obi Cloth. I need some help !
Here is an example: https://www.youtube.com/watch?v=hlK-j3rfk70&feature=youtu.be


RE: Link two Obi objects with Rope - josemendez - 10-03-2018

(10-03-2018, 03:35 PM)matchalover Wrote: I want to make a link between two Obi objects with rope but when i pull the rope to the left, the rope seems to jump out of the Obi Cloth. I need some help !
Here is an example: https://www.youtube.com/watch?v=hlK-j3rfk70&feature=youtu.be

Hi!

I don't really understand what you're trying to accomplish... in the video I can see a rope that you force trough a collider, then when you pull it slightly to one side it of course slips out of it due to collision detection, hitting the cloth sphere next to it.

What is the behavior you'd expect in this case?

cheers,


RE: Link two Obi objects with Rope - matchalover - 10-03-2018

(10-03-2018, 07:29 PM)josemendez Wrote: Hi!

I don't really understand what you're trying to accomplish... in the video I can see a rope that you force trough a collider, then when you pull it slightly to one side it of course slips out of it due to collision detection, hitting the cloth sphere next to it.

What is the behavior you'd expect in this case?

cheers,
I don't want the rope to slips out of the sphere. I want to simulate like the video in this link, with ObiCloth for the pink thing and ObiRope for the rope. Can you give any suggestion?
https://vimeo.com/96087404


RE: Link two Obi objects with Rope - josemendez - 10-03-2018

(10-03-2018, 07:41 PM)matchalover Wrote: I don't want the rope to slips out of the sphere. I want to simulate like the video in this link, with ObiCloth for the pink thing and ObiRope for the rope. Can you give any suggestion?
https://vimeo.com/96087404

Hi there,

This is not possible to achieve with ObiRope or ObiCloth, at least not with the functionality provided out of the box.

There's nothing that prevents a rope to exit a solid collider, in fact quite the opposite: collision constraints are designed to ensure rope particles stay outside of colliders when possible. Simply moving the rope trough a sphere will not automagically sew trough it.

What you're looking for (suture simulation) should be implemented as a position -or velocity- constraint. You should look into how is this implemented in surgical simulators, then write your own code to implement this functionality. However it will be a pretty daunting task if you're not used to physics programming.

Here's some papers to get you started. The first paper contains math for sliding point and sliding direction constraints, which are used to implement the sutures. You can use these equations to work out the forces you need to apply to the rope particles in order to satisfy the constraints:

https://pdfs.semanticscholar.org/d390/337101798b12ec493340acbd5aadff71df6c.pdf
https://pdfs.semanticscholar.org/b4b5/751a1b5efbd278bb94aa255b1c80bfdd4c0f.pdf

kind regards,