3D gravity is something ive tried hard to work on, but realistic orbiting is something i havent attempted to replicate
can you tell me some sources on the physics math here?
A sandbox game about the gravity in the little things · By
The beauty of gravity and orbital mechanics (the classic, newtonian version) is that everything just boils down to a single equation, the law of universal gravitation. The gravitational force between any two objects is always
F = Gm₁m₂/d²
Just making it so everything attracts everything else using that equation is all there is to it. Realistic orbits and orbital mechanics just emerge naturally!