Obi Official Forum
Help Rope weight effect on rigidbodies - 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 Rope weight effect on rigidbodies (/thread-2336.html)



Rope weight effect on rigidbodies - hermonir - 24-06-2020

Hi,

I have a rope with two pin constraints that attach it to a fixed collider on one side and to a rigidbody on the other side.

The rigidbody moves in the scene. I need the rope to affect it physically - pull it down because of the rope's mass. As the rigidbody moves away and the rope stretches between the fixed point and the rigidbody, it should also pull the rigidbody sideways, toward the fixed point.

Is this possible? Changing the particles mass for the rope did not change anything in this regard.

Thanks


RE: Rope weight effect on rigidbodies - josemendez - 24-06-2020

(24-06-2020, 02:24 PM)hermonir Wrote: Hi,

I have a rope with two pin constraints that attach it to a fixed collider on one side and to a rigidbody on the other side.

The rigidbody moves in the scene. I need the rope to affect it physically - pull it down because of the rope's mass. As the rigidbody moves away and the rope stretches between the fixed point and the rigidbody, it should also pull the rigidbody sideways, toward the fixed point.

Is this possible? Changing the particles mass for the rope did not change anything in this regard.

Thanks

Hi,

in physics this is called two-way coupling (the rigidbody affects the rope, and viceversa). It can be achieved by using a dynamic particle attachment. See:
http://obi.virtualmethodstudio.com/tutorials/attachments.html

Make sure you move the rigidbody using forces, if you directly set its transform position you're essentially overriding physics.