Readonly
defaultThe default throttle value for the warp drive.
Disengages the warp drive: the ship will start to decelerate towards 0. The warp drive will be disabled when the ship reaches 0 speed.
Enables the warp drive: the ship will start to accelerate towards the target speed.
Returns the amount of fuel consumed by the warp drive to travel the given distance in light-years.
The distance to travel in light-years.
Returns the current target throttle of the warp drive.
The current target throttle of the warp drive.
Returns the current speed of the warp drive in m/s.
The current speed of the warp drive in m/s.
Increases the target throttle by the given delta and clamps it between 0 and 1.
The delta to apply to the target throttle.
Returns true if the warp drive is disabled. Returns false otherwise.
True if the warp drive is disabled. Returns false otherwise.
Returns true if the warp drive is disengaging. Returns false otherwise.
True if the warp drive is disengaging. Returns false otherwise.
Returns true if the warp drive is enabled and not disengaging. Returns false otherwise.
True if the warp drive is enabled and not disengaging. Returns false otherwise.
Updates the warp drive based on the current speed of the ship, the distance to the closest body and the time elapsed since the last update.
The current speed of the warp drive projected on the forward direction of the ship.
The time elapsed since the last update in seconds.
Computes the target speed of the warp drive based on the distance to the closest body and the user throttle.
The distance to the closest body in m.
The computed target speed in m/s.
Interface of the warp drive of a spaceship that can only be read.