Collision detection on animated objects