Browse Source

add note about eccentricity vector

main
cinnaboot 4 years ago
parent
commit
ee82324dfa
  1. 6
      src/game.cpp

6
src/game.cpp

@ -258,6 +258,12 @@ applyManeuver(GameOrbit* orbit, double previous_true_anomaly)
dvec3 pos = orbitGetPositionVector(r, theta);
dvec3 vel = orbitGetVelocityVector(mu, h, sys.elements.e, theta);
// FIXME: need to count rotation from the 'I' axis on equatorial orbits
// WIP
// also need to get the updated eccentricity vector before we can calculate
// the other angular orbital elements
//sys.elements.omega = sys.elements.nu;
// WIP
sys.rotation = orbitGetXForm(sys.elements);
sys.sat.position = sys.rotation * pos;
sys.sat.velocity = sys.rotation * vel;

Loading…
Cancel
Save