working gravity effects. (a download)
Posted: 24.04.2002, 03:14
Ive finished adding gravitational effects to the observer. :D
To activate gravitational effects press F9 if you are near a large body you should start to see your speed change.
Currently the sols mass is hardcoded and thus all stars have this mass.
Solarsys.ssc contains mass entries for the Nine major planets and the Moon (all in kg).
The observers velocity is now linked to the time compression.
Try tracking jupiter then press F9 and increase the time compression a bit.
Its tricky but you can get yourself orbiting.
hopefully it all works, and all the scaling is ok.
// here is the w32 binary, solarsys.ssc and modified source.
// the file celestia_gravity.zip ~500k is at this site
// http://marcgriffith.150m.com
// or try this
// http://marcgriffith.150m.com/celestia_gravity.zip
not any more go here http:://mostlyharmless.sourceforge.net
known problems:
I'm not sure of this one but I think that having Follow mode or Sync orbit set ruins the effect.
Releasing F9 brings the velocity back to the last manually set velocity.
Going through the center of a body can give a huge slingshot effect, totally unrealistic.
Theoritacally it should crash as the accelleration goes infinite.
comments on any errors, or further ideas would be appreciated.
enjoy!
Marc[/quote]
To activate gravitational effects press F9 if you are near a large body you should start to see your speed change.
Currently the sols mass is hardcoded and thus all stars have this mass.
Solarsys.ssc contains mass entries for the Nine major planets and the Moon (all in kg).
The observers velocity is now linked to the time compression.
Try tracking jupiter then press F9 and increase the time compression a bit.
Its tricky but you can get yourself orbiting.
hopefully it all works, and all the scaling is ok.
// here is the w32 binary, solarsys.ssc and modified source.
// the file celestia_gravity.zip ~500k is at this site
// http://marcgriffith.150m.com
// or try this
// http://marcgriffith.150m.com/celestia_gravity.zip
not any more go here http:://mostlyharmless.sourceforge.net
known problems:
I'm not sure of this one but I think that having Follow mode or Sync orbit set ruins the effect.
Releasing F9 brings the velocity back to the last manually set velocity.
Going through the center of a body can give a huge slingshot effect, totally unrealistic.
Theoritacally it should crash as the accelleration goes infinite.
comments on any errors, or further ideas would be appreciated.
enjoy!
Marc[/quote]