The movement of planets in a protoplanetary disk due to gravitational interactions with gas and other planets.