Answer:
It's complex, but it is related to the velocity of the asteroid, the orbital velocity of the planet, the gravitational pull of both, and the asteroids angle of attack.
Gravity and weather are what give the earth its shape
When the energy of the waves touches the ocean floor, the water particles drag along the bottom and flatten their orbit.
HOPE THIS HELPS!!!