- Home /
MeshCollider Collision Table
Could someone provide me with a collision table of what MeshColliders will/will not send collision/trigger messages with (not physics collisions, just the messages, or, for example, Raycasts)? I'm looking for any possible configuration (Kinematic / Trigger / Raycast / Other types of colliders / Other Mesh Colliders).
Answer by Mike 3 · Jul 25, 2010 at 02:48 PM
At the very bottom of the page is a matrix of what collides with what:
http://unity3d.com/support/documentation/Components/class-MeshCollider.html
It's pretty badly laid out, but it'll give you what you need
The rest of the page will give you information on meshcollider specific interactions
Raycasts should always work with meshcolliders, no matter what sort
I know it was a bit of an old post, but may as well fill in the missing info
That table doesn't have anything on mesh colliders (convex or otherwise) which is why I was asking. I know about that table already (and yes, it is hideous).
Indeed, but the text above it does. (i.e. convex collider collides with everything, non convex collide with everything but other non convex. Though it fails to mention non convex won't work with terrains)
Answer by Ashkan_gc · May 02, 2010 at 09:28 AM
their collision table is just like other colliders but they can not collide with each other if they move and their triangle count is higher than 255. they can collide with other collision shapes easily just like others but non static mesh colliders with more than 255 triangles can not have collisions with each other (physx don't detect it). so mesh colliders that they are convex can collide with other convex mesh colliders when moving but they are limited to 255 triangles. (you can check the convex checkbox in mesh collider's inspector). there is not any other limitation applied. convex mesh colliders that move are heavy don't use them if you don't have to do. each collision check should check for all 255 triangles of each mesh collider.
Not really what I was looking for. I already know about the limits, and convex mesh colliders. I'm looking for if (and how) they collide with triggers, raycasts, and other primitives. Your answer was also basically one big run-on sentence... I was looking for something a bit more organized so I could reference it easily.
mesh colliders are as same as other colliders like box/sphere. a trigger mesh collider can only collider with kinematic rigidbody or rigidbody and you can cast a ray and detect them. see the collision table in docs. there is no difference other than what i told you.
Your answer
Follow this Question
Related Questions
MeshCollider Failure at high velocities 0 Answers
Implementing Meshless Deformation 0 Answers
How to setup collision with freshly generated mesh and prefabs 1 Answer
Rigidbody and convex mesh collider 1 Answer
Mesh Collider for Voxels 1 Answer