Obi Official Forum
Help Irregular Rigidbody reactions - 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 Irregular Rigidbody reactions (/thread-2627.html)



Irregular Rigidbody reactions - SilverStanley - 11-12-2020

Hi,
I have no idea what is going on here,
Rope has a Dynamic Obi Particle attachment, attached to a cube(Load) with obi collider and obi rigidbody, the Obi Fixed Update has 3 substeps. The solver is a copy of the Crane solver.
The physics material of the obi colliders is all High Friction. When I run the game, the load rigidbody keeps jumping all over the place.

GIF of the problem

Please help me with this.
Thanks in advance


RE: Irregular Rigidbody reactions - josemendez - 11-12-2020

(11-12-2020, 02:06 PM)SilverStanley Wrote: Hi,
I have no idea what is going on here,
Rope has a Dynamic Obi Particle attachment, attached to a cube(Load) with obi collider and obi rigidbody, the Obi Fixed Update has 3 substeps. The solver is a copy of the Crane solver.
The physics material of the obi colliders is all High Friction. When I run the game, the load rigidbody keeps jumping all over the place.

GIF of the problem

Please help me with this.
Thanks in advance

Hi there!

1.- Since you're using both substepping and rigidbody interaction, make sure you've enabled the "substep Unity physics" checkbox in the updater, as per the manual:
http://obi.virtualmethodstudio.com/tutorials/updaters.html

Quote:Substep Unity physics

Enable this when using more than 1 substep, and requiring accurate interaction with Unity rigidbodies (via collisions or dynamic attachments).

If you don't, Unity and Obi will update out of sync with each other and cause all sorts of instabilities since you're substepping particle physics but not rigidbody physics.

2.- Make sure you haven't attached the rope inside or very close to the collider, if the rope is set to collide with the rope as well. In this case you need to deactivate collisions between the rope and the collider, as explained here:
http://obi.virtualmethodstudio.com/tutorials/pinconstraints.html

Easiest thing to do is set the collider's phase to 1: the same as the rope particle's by default.

Attaching a rope inside a collider with which it has to collide results in an unsolvable situation: the rope can't be simultaneously inside and outside the collider. This manifests as jittering, as the engine tries to solve a situation that can't possibly be solved.


RE: Irregular Rigidbody reactions - SilverStanley - 11-12-2020

(11-12-2020, 02:09 PM)josemendez Wrote: Hi there!

1.- Since you're using both substepping and rigidbody interaction, make sure you've enabled the "substep Unity physics" checkbox in the updater, as per the manual:
http://obi.virtualmethodstudio.com/tutorials/updaters.html


If you don't, Unity and Obi will update out of sync with each other and cause all sorts of instabilities since you're substepping particle physics but not rigidbody physics.

2.- Make sure you haven't attached the rope inside or very close to the collider, if the rope is set to collide with the rope as well. In this case you need to deactivate collisions between the rope and the collider, as explained here:
http://obi.virtualmethodstudio.com/tutorials/pinconstraints.html

Easiest thing to do is set the collider's phase to 1: the same as the rope particle's by default.

Attaching a rope inside a collider with which it has to collide results in an unsolvable situation: the rope can't be simultaneously inside and outside the collider. This manifests as jittering, as the engine tries to solve a situation that can't possibly be solved.


Thanks for the response Jose.

It is working like a charm now.


RE: Irregular Rigidbody reactions - josemendez - 11-12-2020

You're welcome! Sonrisa let me know if I can be of further help.