A Way To Translate Orbit Data Into Game Animation Or A Script Using BGE

physics
animation

(Lumpology) #1

I am working on a solar system component of a game and I want to accurately take this data: https://nssdc.gsfc.nasa.gov/planetary/factsheet/earthfact.html

and make it work in blender using a script or an animation of some kind: https://www.youtube.com/watch?v=CEH2HyVnKQM

any ideas on how to get the object in “A” the correct position and “B” using the correct orbital period?


(Ben H) #2

How exact do you really need to be in your game? Because the movement of planets is actually a surprisingly complex issue. Those numbers you linked are for use with Keplar’s Laws of Planetary Motion. I found This webpage which seems to have a reasonable breakdown of the math involved.

What you will probably need to do is write a script for calculating the position of the planet using those formulas (or a simplified version, like just doing a circular orbit) and update the position of the object each frame.