Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Bug / Crash  Obi Solvers are adding HUGE forces to rigidbodies in scenes without any ropes!
#1
Bug 
I've encountered a consistently reproducible bug that is so critical it renders ObiRope virtually unusable.

I have a scene:
  • A scene with spherical rigidbodies with X, Y and Z rotations locked (which produces an inertia tensor of 0 along locked axes.)
  • The spherical rigidbodies are manipulated via script.
  • The spherical rigidbodies have an ObiRigidbody and ObiCollider attached initially.
  • Initially, no ropes, cloth, or any other Obi objects (aside from the aforementioned) are present in the scene.

Reproduction:
  1. On a fresh unity start after closing it down completely, I run the scene.
  2. Initially everything works correctly.
  3. So long as I do not place a rope in the scene, I can stop and play the scene as many times as I like.
  4. I place the rope in the scene - which I do while playing; it isn't initially in the scene - it works correctly at first. I use a script to attach a rope to two surfaces selected by the player. Also worth nothing that no ObiSolvers are present in the scene until a rope is added.
  5. Then after stopping and starting a new play session - WITHOUT placing any ropes in the new play session - the spherical rigidbodies are given such extreme forces that they are often sent straight into NaN-land. It doesn't appear to matter where the ropes are attached in the previous session.
  6. Running a debugger and inspecting the values provided to ObiRigidbody.UpdateVelocities, they are often insane values with a magnitude greater than 1.0e+20, if not outright NaN.
  7. Even if I add a condition that the provided velocities are only added if their magnitudes are < 1000, the sphere rigidbodies will be accelerated with a huge amount of force along either the X, Y or Z axis in either direction.
  8. Removing the ObiRigidbody (and ObiCollider) components prevents this.
  9. The only way to bring ObiRigidbody into a usable state is to re-start the editor.
I previously had 5.1 installed, and immediately after upgrading the bug started to occur.
Reply


Messages In This Thread
Obi Solvers are adding HUGE forces to rigidbodies in scenes without any ropes! - by Hatchling - 12-05-2021, 02:05 AM