Convex Mesh Collisions not functioning

Hello,

I am having trouble making two mesh colliders notice each other. Every resource I have found says that one has to be convex, and then it will work.
As much as I try I cannot even get it to work in the simplest forms.

I have a cube and a cylinder. Each has a mesh collider component, and a simple script that will detect a collision and turn the object red.

Image of each - Imgur: The magic of the Internet

They do not detect collisions with each other, but detect a rigidbody sphere falling on them just fine.

I have tried:
Neither is convex
One is convex
The other is convex
Both are convex

What is the problem, or what am I missing? I have been stuck trying to figure it out for a long while.

I just need to check for a single frame, so if I can turn off the requirement that one be convex briefly that would also work.

Hi,

did you already solve this? Works fine here with this setup:

Cylinder with mesh collider + convex, rigidbody.
Cube with mesh collider + convex, rigidbody.

Make sure that both are in layer that can collide with itself.
Make sure that moving object that collides has a rigidbody (seems like it detects collision better that way?).
Don’t use too dense meshes.

1 Like

Thank you, that was mostly what I needed. I needed it to be frozen in place and not actually ‘physics’ collide because the object’s are very specifically placed.

I ended up having to make them triggers and not have gravity so they would not fall or bounce off each other.