Browse Source

add note about eccentricity vector

main
cinnaboot 4 years ago
parent
commit
ee82324dfa
  1. 6
      src/game.cpp
  2. 2
      src/main.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;

2
src/main.cpp

@ -11,7 +11,7 @@
* - Hohmman transfer orbits
* - make an 'overlay' graphic for things like apoapsis, perisapsis, f1, f2,
* flight path
* - fix coordinate directions overlay
* - fix coordinate directions overlay
* - patched conic method for transferring between 2 grav bodies
* - test parabolic/hyperbolic trajectories
* - organize orbit functions into interface/internal functions

Loading…
Cancel
Save