Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Help  Obi Collider with Custom Collider
#1
Triste 
Hello all,

I am aiming to make a potion-mixing simulator and I am attempting to create a bottle to put liquid inside of. I am using Unity 3D and I have downloaded a Compound Collider script that allows concavity, and creates a compound collider by adding multiple mesh colliders as children of the desired object. I currently tried to add an Obi Collider script onto every child object that is made of the colliders. In theory this should work, but the liquid is still falling through. 

Is there a way I can have the Obi Collider script communicate with this compound collider? If this isn't simple is there a possible way to complete this through scripting? Any and all help appreciated! I have attached photos below.
Reply
#2
(11-02-2021, 02:01 AM)Torchbiz Wrote: Hello all,

I am aiming to make a potion-mixing simulator and I am attempting to create a bottle to put liquid inside of. I am using Unity 3D and I have downloaded a Compound Collider script that allows concavity, and creates a compound collider by adding multiple mesh colliders as children of the desired object. I currently tried to add an Obi Collider script onto every child object that is made of the colliders. In theory this should work, but the liquid is still falling through. 

Is there a way I can have the Obi Collider script communicate with this compound collider? If this isn't simple is there a possible way to complete this through scripting? Any and all help appreciated! I have attached photos below.

Obi already supports concave mesh colliders out of the box. You can use either a regular MeshCollider (Obi will consider it concave, even if Unity doesn't), or better yet, use distance fields:
http://obi.virtualmethodstudio.com/tutor...ields.html

They're much cheaper than mesh colliders, and considerably more robust.
Reply