Dynamic collision detection