Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Help  Obi Rope Constraints not simulated Bug
#1
Hello All,

I'm having a very weird issue with Obi Rope lately, and it looks like it's a bug from the plugin. I'm using Obi 6.2.

I'm developing a game where the Player can attach itself to objects and drag them around, using a Rope.
I've been configuring the different Constraints in the Obi Solver, tweaking the amount of iterations in order to get what I want.
Right now, Distance Constraints and Collision Constraints are set up with a high amount of iterations, which gives my rope a quite realistic result, as it will do its absolute best to keep its length and wrap around any surface it encounters without going through them, and apply a lot of tension on the linked objects, which is great.
I also have pin constraints set up through script that link the player with the targeted object.
The mass of the player is 100. While the mass of the objects range from 10 to 10000. With very heavy objects, the player is completely constrained by the attached rope.
The rope itself has a mass of 1, but it works pretty much the same through the range 0.5 to 5. A heavier rope will instantly break the rope.
The rope has Bend Constraints set up entirely at 0.
The rope has Distance Constraints with stretching at 1, the rest at 0.
The rope has Tearing with tear resistance at 100000, and tear rate at 1. Which allows tearing only when an extreme force is applied.

But, in several situations, the distance constraints seemed to be completely absent, as if there were not setup.
After some tests though, it seems like the player is just not affected by the two-way interaction with the Rope, as the rope does not keep its length at all, and eventually breaks, and the player just doesn't seem affected by the tension. Even though pin constraints are setup correctly, and it's been working fine in every situation.
But in the following situations, it does not :
- In build. All builds of the game lately have had this bug, while in editor it worked fine.
- Having the Solver in a Prefab. For some reason this triggered the bug too.
- Copying the Solver a second time (having more than one solver in the scene, even when only one is active)
- When updating the plugin to Obi 6.3, which I just did today.

I have no idea what is causing this, and why the simulation is different in these situations, but I'll be glad if this post could get reviewed by the Obi team.
If you need more details, I'll gladly link some more videos or screens.

Thank you for your time,

Max.
Reply


Messages In This Thread
Obi Rope Constraints not simulated Bug - by Moujingue - 07-02-2022, 02:56 PM