gravity model
Posted: 18.04.2002, 17:16
Ive been working on a gravity model for celestia.
Now as you move about the solar system an accelleration vector is calculated by adding up all the gravitation effects from each of the planets on the observer.
the sum of An = G * (Mn/r^2)
If you travel to the surface of the earth it will read 9.808 ms^-2
it will also vary slightly as the moon orbits (tides)
Ive added Mass entries (kg) in the solarsys.ssh file for all the planets of sol and earths moon.
Mass has not been assigned to stars as yet, but will be soon (chris) ;)
Im too lazy to assign masses to all the other bodies. and the other system planets have the mass in another unit. (jupiters)
The next step is to make this vector affect the observers velocity. (and map the velocity to the time compression).
Then thrusters, autopilot, lasers, spacestations, docking music, hyperspace and Elite! see http://freelite.sourceforge.net
here is a link to what ive been working on
http://www.users.bigpond.com/ryears/cel ... ravity.zip 465k
It includes a win binary, solarsys.ssh and the source i modified.
hopefully i havnt stuffed anything and works on your systems
im interested in your comments.
Now as you move about the solar system an accelleration vector is calculated by adding up all the gravitation effects from each of the planets on the observer.
the sum of An = G * (Mn/r^2)
If you travel to the surface of the earth it will read 9.808 ms^-2
it will also vary slightly as the moon orbits (tides)
Ive added Mass entries (kg) in the solarsys.ssh file for all the planets of sol and earths moon.
Mass has not been assigned to stars as yet, but will be soon (chris) ;)
Im too lazy to assign masses to all the other bodies. and the other system planets have the mass in another unit. (jupiters)
The next step is to make this vector affect the observers velocity. (and map the velocity to the time compression).
Then thrusters, autopilot, lasers, spacestations, docking music, hyperspace and Elite! see http://freelite.sourceforge.net
here is a link to what ive been working on
http://www.users.bigpond.com/ryears/cel ... ravity.zip 465k
It includes a win binary, solarsys.ssh and the source i modified.
hopefully i havnt stuffed anything and works on your systems
im interested in your comments.