Game Development Community

Animating Collision Mesh - Door

by Emily Roxworthy · in Artist Corner · 11/19/2010 (6:33 pm) · 2 replies

Hello,
I'm working on animating a door, and right now I'm having a problem where although the door's visible mesh is being animated, the collision mesh appears to stay in the same spot. Does anyone know how to remedy this? Both objects are being animated the same way. I attempted to do collision detection based on the visible mesh as well, but it still provided the same results.

#1
11/20/2010 (10:19 am)
That's correct. Animation does not trigger a regeneration of collision shapes. One easy way to fix this is to simply hide the collision mesh as you'd hide a visible mesh once the door is open. I'm not sure how much of the mesh hiding is exposed to console, but this is how we handle doors.
#2
11/20/2010 (3:08 pm)
Another solution would be to use the game engine itself to do the transform of the door shape.