Just watch. Change the strength of gravity and try to make bigger planets.
Planetoids often fly off into space. The gravity is "real": distance-squared, weighted by mass, etc. Planet merging is done with "correct" mass and velocity.