Handling collision detection with the floor