Obi Official Forum
Bug / Crash Can't seem to make rope collide with Mesh Collider - 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 Can't seem to make rope collide with Mesh Collider (/thread-2924.html)



Can't seem to make rope collide with Mesh Collider - edenalon - 12-05-2021

Hello!
I'm browsing the docs and I must get something wrong while implementing collision of ObiRope.
What are the correct ways to do so?
I manage to get it working with box colliders. I want it to collide with a mesh collider that isn't convex. is it possible?
thanks for the help,
Eden.


RE: Can't seem to make rope collide with Mesh Collider - josemendez - 12-05-2021

Hi Eden,

If you add a ObiCollider component to the MeshCollider (or any collider) it should just work, convex or otherwise. Keep in mind that only the surface of MeshColliders generates collisions: they're not "solid", unlike primitive colliders -box, capsule and sphere-.

Also make sure the collider's phase is different from the rope's phase. By default, the phase of a rope is set to 1 and the collider phase set to 0, so they should collide with each other.

Can you share your setup?