25 lines
974 B
Plaintext
25 lines
974 B
Plaintext
|
@LAZYGLOBAL OFF.
|
||
|
|
||
|
run once "lib/equations".
|
||
|
run once "lib/node".
|
||
|
|
||
|
|
||
|
function change_orbit {
|
||
|
//
|
||
|
// Change current orbit. Set parameter to -1 to maintain the current value
|
||
|
//
|
||
|
parameter inclination is ORBIT:INCLINATION. // vertical tilt of the orbit with respect to the equator
|
||
|
parameter eccentricity is ORBIT:ECCENTRICITY. // how circular the orbit is (e=0 circular)
|
||
|
parameter periapsis is ORBIT:PERIAPSIS. // lowest point in the orbit
|
||
|
parameter LAN is 0. // longitude of ascending node; the longitude where the orbit crosses the equator northwards
|
||
|
parameter argument_of_periapsis is ORBIT:ARGUMENTOFPERIAPSIS. // the angle from the ascending node to the periapsis, measured in the direction of motion
|
||
|
|
||
|
print inclination.
|
||
|
print eccentricity.
|
||
|
print periapsis.
|
||
|
print LAN.
|
||
|
print argument_of_periapsis.
|
||
|
}
|
||
|
|
||
|
change_orbit().
|