Some kind of thing to do with orbital mechanics. Even includes motion planning, WOW.
I distinctly remember finding out how to properly calculate the force of gravity based on distance and math for this, but it looks like I gave it a minimum distance to take effect (Otherwise the orbits would be way messier)
Not sure what the spiky yellow thing is. It's just called Object3
I think I made a version of this in pure Java too.