- Home /
OnTriggerEnter mesh collider problem
Hey
So I have an area where i tag all game objects inside of the area to a dictionary. With a normal sphere collider trigger all objects starting inside of the area are instantly tagged and objects entering the area later on are tagged as well. These objects are all rigidbodies.
The problem comes when i try to change the sphere collider for a mesh collider, as it does not register objects which spawn inside the area but only those who enter/exit. The function OnTriggerStay is not working with this collider either.
Any help appreciated //Latedi
Answer by Latedi · Jul 28, 2014 at 01:28 PM
For some reason, using a convex collider allows for objects to start inside of the trigger and still trigger the OnTriggerEnter function. This however has another limitation of forcing the mesh below a 255 poly limit. I don't know why but it works.