Skip to content

Latest commit

 

History

History
37 lines (31 loc) · 2.9 KB

Node.md

File metadata and controls

37 lines (31 loc) · 2.9 KB

Node

Maneuver node.

Constructors:

  • Node(): time double, prograde double, normal double, radial double
    • Create new maneuver node for active ship, specifying time and optionally prograde, normal and radial delta-v (unspecified are zero).
  • Node(): time double, deltav Vector
    • Create new maneuver node for active ship, specifying time and burn vector. See deltav property for more details.
  • Node(): time TimeStamp, prograde double, normal double, radial double
    • Create new maneuver node for active ship, specifying time and optionally prograde, normal and radial delta-v (unspecified are zero).
  • Node(): time TimeStamp, deltav Vector
    • Create new maneuver node for active ship, specifying time and burn vector. See deltav property for more details.
  • Node(): eta TimeDelta, prograde double, normal double, radial double
    • Create new maneuver node for active ship, specifying eta and optionally prograde, normal and radial delta-v (unspecified are zero).
  • Node(): eta TimeDelta, deltav Vector
    • Create new maneuver node for active ship, specifying eta and burn vector. See deltav property for more details.

Instance Properties:

  • native: ManeuverNode - [Unsafe] KSP API
  • ship: Ship - Ship the node belongs to.
  • time: TimeStamp - Planned time for the maneuver.
  • eta: TimeDelta - Seconds until the maneuver.
  • deltav: Vector - Direction and amount of velocity change needed (aka burn-vector). Note that the vector is relative to the SOI where the node is (not where the ship currently is). That means that the vector will be relative to the current position of the Mun not relative to future position of the Mun (when the node is for example at the periapsis = closest enounter with the Mun and is retrograde with the right amount for circularization, but the ship is currently still in Kerbin's SOI). Therefore ship.orbitAt(time).velocityAt(time) shall be used rather than ship.velocityAt(time) when planning nodes in different SOI (both work the same when in same SOI).
  • nativeDeltaV: Vector3d - [Unsafe] KSP API. Setting it also calls patchedConicSolver.UpdateFlightPlan().
  • prograde: double - Amount of velocity change in prograde direction.
  • normal: double - Amount of velocity change in normal direction.
  • radial: double - Amount of velocity change in radial-out direction.
  • orbit: OrbitInfo - [WIP] Orbit parameters after the node.

Static Properties:

  • next: Node - Next maneuver node of active ship. Null if none or in wrong scene.

Instance Methods:

  • remove(): void - Remove/delete the node.
  • delete(): void - Remove/delete the node.