Obi Official Forum
Exceptions on scale 0 Obi rope - 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: Exceptions on scale 0 Obi rope (/thread-2759.html)



Exceptions on scale 0 Obi rope - bobby - 19-02-2021

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.


RE: Exceptions on scale 0 Obi rope - josemendez - 19-02-2021

(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.