static collision detection