Compound collider and triggers confusion.

I’ve searched the docs and read all the forums posts I could find on this subject and still can’t get it to work.

I’m trying to get a beacon to do stuff when the player hits it, not actually apply physics, just a trigger. I got it working if the player only has one collider but with two or three it wont work.

I set my beacon as a mesh collider (needs to be for my game unless someone knows how to calculate a OBB) with is trigger true. The player has a rigidbody and I want at least two colliders on it maybe three.

Tried OnCollisionEnter, OnTriggerEnter, forwarding collision/trigger messages to parent, empty children with colliders, new project and probably alot more.

I tried everything I could think of. Can someone please help me with a small guide?

Little update: I just thought to test changing the collider on the beacon from mesh to something else and then it worked. But that doesn’t help me much because I need mesh colliders for my triggers. Anyone know a solution?

add the Convex option to the mesh collider, that should help you out :slight_smile:

Thanks for the help.

For reference: I think I tried that, maybe not, can’t remember. I think compound colliders will not function with mesh collider triggers. But I found somewhat of a solution. I made a prefab with a obb (object aligned bounding boxes) in unity and replaced what I needed. You can read a bit about aabb and obb in unity here: http://forum.unity3d.com/viewtopic.php?t=31111&highlight=