- Home /
How to prevent convex mesh colliders from recalculating?
Hey guys! I have a couple of convex mesh colliders, and I need them to be disabled for a while, and then enable them. Problem is, each time you activate a convex mesh collder, it recalculates it's mesh. My question is: is there any way to force Unity to calculate the mesh at offtime?
Answer by HappyMoo · Jan 02, 2014 at 06:53 PM
Maybe not deactivate it, but push the gameobject on another layer and ignore that layer on collisions?
That seems to hacky for something that should be easy :(
If the default behaviour is that it calls a method to recalculate if you turn it active, I don't know what else you would expect...
Because the only thing that lets you deactivate and activate the collider and not produce a recalculation would be to set the private member that sets it active via Reflections and that is way more hacky and could have sideeffects if it also calls something else that it needs to work properly.
Your answer
Follow this Question
Related Questions
Mesh Collider strange behavior with box collider. 0 Answers
Collider Mesh Is Not Tight Enough 0 Answers
Mesh collider convex limit 0 Answers
Dynamic convex mesh collider not working until moved in the editor 1 Answer
OnTriggerStay won't stop firing...! 0 Answers