Obi Official Forum

Full Version: Exceptions on scale 0 Obi rope
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hello Obi,

when I tween the obi solver size to 0, I get a lot of exceptions. is there any way to remove them? I tried setting solver.enabled to false, but then when I deactivate the solver gameobject, i still get exceptions "Assertion failed on expression: 'ValidTRS()'

It doesn't affect the gameplay, it's just that exceptions appear in the console.
(19-02-2021, 04:03 PM)bobby Wrote: [ -> ]Hello Obi,

when I tween the obi solver size to 0, I get a lot of exceptions. is there any way to remove them? I tried setting solver.enabled to false, but then when I deactivate the solver gameobject, i still get exceptions "Assertion failed on expression: 'ValidTRS()'

It doesn't affect the gameplay, it's just that exceptions appear in the console.

Hi setting the solver scale to 0 or negative values isn't really supported, as it would effectively cause a lot of singularities in matrix operations. We will consider supporting this in future updates.

As a wrokaround, try scaling the solver to a small enough value (eg 0.0001) instead of all the way to zero.