Obi Official Forum
Bug / Crash Dynamic attachments - 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: Bug / Crash Dynamic attachments (/thread-2200.html)



Dynamic attachments - Kristaps - 26-04-2020

I think that Dynamic attachments have a bug!

When I create a rope and add a Dynamic attachment with Break threshold ( any number from 1-1000 )
Things work as planned at the beginning.
I move the connected object and if force gets over break threshold - it detaches from the rope!

But after I close unity and reopen, or make a standalone build ( windows, osx ) the object can't detach from the rope at all Triste

After I remove the dynamic attachment and add again - it works in the editor, till I close and reopen editor or build a standalone build!


Any tips or ideas about what's going on?

P.S. I tried to debug the code to see what's happening, and found that something strange is happening in function BreakConstraints.
Oni.GetBatchConstraintForces always returns 0 forces! ( even when the object is jumping around ) after you reopen the editor!

Possible a init fail after you reload the project as it works only on 1st time when the dynamic attachment is added.
I hope this helps to smash the bug!


RE: Dynamic attachments - josemendez - 28-04-2020

Hi there!

Thanks for reporting this! I could reproduce it. Will fix it and provide a patch asap.

kind regards,