- Home /
Triggers et al. don't work with mesh colliders. But where is it written in the documentation?
Hi everyone.
There are many threads on the "Triggers don't work with MeshColliders" here on answers.unity3d.com. What I wonder is where is this written in the documentation? Because the OnTriggerEnter documentation (http://docs.unity3d.com/ScriptReference/Collider.OnTriggerEnter.html) says nothing about it. That being so, I lost quite a lot of time to figure this out. I believe something should be added to the documentation on this point.
I added a simple project to exemplify the problem. It was tested on Unity 4.6 pro. On unity 5 the player actually complains about the mesh collider not being marked as convex. Doing so, fixes the problem on unity 5, but has no effect on unity 4.6.
BTW, if you try to run the attached project on u5 it'll just crash the editor. But you can copy the scene and script to a new u5 project.
Cheers.
[1]: /storage/temp/60393-collider46.zip
Your answer
Follow this Question
Related Questions
How do I prevent multiple triggers using OnTriggerEnter? 1 Answer
Checking if colliding with anything in a layer 1 Answer
Did triggers inside loaded gameobjects break in a recent update? 0 Answers
Fastest way to check for bounding box partially or fully inside another bounding box? 1 Answer
OnCollisionExit() firing when object has not exited 0 Answers