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:
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.
Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.
The best place to ask and answer questions about development with Unity.
To help users navigate the site we have posted a user guide.
If you are a new user, check out our FAQ for more information.
If you are a moderator, see our Moderator Guidelines page.
We are making improvements to UA, see the list of changes.
For troubleshooting common problems with Unity 5.x Editor (including Win 10).
Answers and Comments
No one has followed this question yet.
Implementing Meshless Deformation
MeshCollider Failure at high velocities
Issues changing a mesh collider in edit mode
Checking collisions between two objects that don't have rigidbodies
Sphere collider with continuous dynamic and mesh collider issue.