Orbital Determination
How can we calculate the shape of an orbit given a spacecraft's initial position and velocity? This is the Orbit Determination problem.
OrbitLib Determination
Using the Orbit.fromPositionVelocityECI(...)
constructor, we can calculate an orbit from initial position and velocity.
Hello OrbitLib! Script | |
---|---|
Implementing "Maneuver Nodes"
A common staple of orbital mechanics games is to allow the player to place "maneuver nodes." These nodes represent points along the orbit where the spacecraft will burn to adjust its velocity and, in turn, trajectory.
The easiest way to implement impulse maneuver nodes is probably the following:
-
Use
Orbit:GetPositionVelocityECI(...)
to get the position and velocity at the true anomaly of the maneuver node. -
Add the end velocity from the maneuver to the result from step 1.
-
Use
Orbit.fromPositionVelocityECI(...)
to calculate the new orbit using the position from step 1 and the new velocity from step 2.