|
|
|
|
@ -244,16 +244,6 @@ applyManeuver(GameOrbit* orbit, ManeuverNode* maneuver)
|
|
|
|
|
double theta = maneuver->true_anomaly; |
|
|
|
|
double mu = sys.body.mu; |
|
|
|
|
double r = orbitGetRadialDistance(sys.ep.e, sys.ep.p, theta); |
|
|
|
|
|
|
|
|
|
// FIXME: debugging code
|
|
|
|
|
|
|
|
|
|
#if 0 |
|
|
|
|
GameOrbit old_orbit = *orbit; |
|
|
|
|
if (!old_orbit.in_use) exit(1); // don't optimize out
|
|
|
|
|
#endif |
|
|
|
|
|
|
|
|
|
// FIXME: debugging code
|
|
|
|
|
|
|
|
|
|
dvec3 pos = orbitGetPositionVector(r, theta); |
|
|
|
|
dvec3 vel = orbitGetVelocityVector(mu, sys.h, sys.elements.e, theta); |
|
|
|
|
sys.rotation = orbitGetXForm(sys.elements); |
|
|
|
|
|