You could use an image which represents the gravitational field of each planet, pre-rendered from pre-calculating the gravity at each pixel. Several of these could easily be stamped down and referenced, or just looked up with an offset, when you want to know how much force to add to things that are moving around. It would be a bitmap of custom types, in a way. Quicker if you can precalc than doing it realtime.
Planetary Gravity Physics
BlitzMax Forums/BlitzMax Programming/Planetary Gravity PhysicsThe forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.