Obi Official Forum
Obi Collider category problem - 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: Obi Collider category problem (/thread-3246.html)



Obi Collider category problem - aqualonix - 23-12-2021

Hello, I have a strange problem. I'm using my softbody and my obi bone with different colliders. However Obi bone wont work with the right collision category from the start until I set it again to the same category in the game mode. So it starts with the default 0 category even if set it to 2.


RE: Obi Collider category problem - josemendez - 12-01-2022

(23-12-2021, 04:56 PM)aqualonix Wrote: Hello, I have a strange problem. I'm using my softbody and my obi bone with different colliders. However Obi bone wont work with the right collision category from the start until I set it again to the same category in the game mode. So it starts with the default 0 category even if set it to 2.

Hi there!

I'm unable to reproduce this. What Unity version are you using, and which solver backend (Burst or Oni)?


RE: Obi Collider category problem - josemendez - 12-01-2022

Upon further investigation I realized that the category value shown in the inspector UI is correct, however the underlying value used for bones is indeed reset to zero at the start. I fixed it, attached you can find the ObiBone.cs file. Replace yours with it (found at /Obi/Scripts/RopeAndRod/Actors/ObiBone.cs) and let me know how it goes!