the planet follows newton's formula for gravity: gravity*mass1*mass2/distance^2 the gravity is stronger the closer your mouse is to the planet