For example, gravitational attraction between the Earth and the Moon keeps the Moon in orbit ... This is because velocity is a vector quantity that depends on speed and direction.