Collision detection test with gravity.