1: Slow motion/TimeLapse(skips 50 ticks before rendering again) 2: Manual Scaling Toggle Green line = Gravitational Pull direction (There is a green line for every object, but is very small if the gravitational pull is small, scales with scale factor) Blue line = Velocity Direction (1 line for the current velocity direction, scales with scale factor) Red line = Scale Factor
NOT POLISHED/NO COMMENTS EXPLAINING CODE Some implementation of newtons gravity equations. Very easy to add as many planets as you want. Gravity affects all objects relative to each other. All values in the code can be changed, it is built on scalability and ease of tweaking.