Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Help  Pulling Rigidbodies with bigger mass
#2
(11-02-2021, 02:15 PM)Eddy13 Wrote: Hello, 

I recently updated an old project and I see that there are some changes to the asset, and I can not recreate the old obi rope behavior that I had before. Unfortunately I could not find a solution in documentation, sorry if I missed it. Basically what I need is to use the rope to pull heavier objects. Kind of similar to crane example, but lets say if I need to pull Rigid body that has a mass of say 2000-4000. Right now if I try to pull a heavy Rigid body by changing rope length, the rope does not generate any pull. In the older Obi version I was able to set it up, but I don't remember exactly what I did, or did Obi rope had a much different behavior out of the box?

Obi's core solver has changed very little over time, so this can be due to one (or a combination) of 3 things:

1- You're using a static attachment, instead of a dynamic one.
2- Your rope has very small mass compared to the rigidbody.
3- You're using very few substeps/iterations.

1- Static attachments simply teleport the rope to whatever it's attached to. No physics of any kind involved. Dynamic attachments on the other hand, interchange forces between the rope and the object it is attached to, resulting in two-way coupling. You want to use dynamic attachments. See: http://obi.virtualmethodstudio.com/tutor...ments.html

2- All iterative solvers have trouble with very large or very small mass ratios. In some solvers such as Unity's own physics engine this trouble means jittering, explosions, and all sort of weird behavior. In Obi's case, this "trouble" manifests itself as stretching. If you try to pull a 4000 kg rigidbody with a 1 kg rope, the mass ratio (4000:1) will cause the rope to stretch a lot.

Increasing the rope mass (per control point, in the rope's path editor: http://obi.virtualmethodstudio.com/tutor...setup.html) so that the ratio is smaller will improve this.

3- Substeps and iterations determine the budget allowed for the physics simulation. Many substeps/iterations will yield more accurate simulations, at the cost of performance. You might want to use anywhere between 3-10 substeps for a rope that can reach close to zero stretch. For an in-depth explanation of this, see:
http://obi.virtualmethodstudio.com/tutor...gence.html

let me know if I can be of further help. cheers!
Reply


Messages In This Thread
Pulling Rigidbodies with bigger mass - by Eddy13 - 11-02-2021, 02:15 PM
RE: Pulling Rigidbodies with bigger mass - by josemendez - 11-02-2021, 02:48 PM