Module SurfaceEngineUnit
Surface engines require a surface to push off from.
They support movement of ships across the ground or other surfaces. Hover engines require an atmosphere to function, while vertical boosters provide more thrust and can operate in space but consume space fuel.
Element class:
- HoverEngineSmallGroup
- HoverEngineMediumGroup
- HoverEngineLargeGroup
- AtmosphericVerticalBoosterXtraSmallGroup
- AtmosphericVerticalBoosterSmallGroup
- AtmosphericVerticalBoosterMediumGroup
- AtmosphericVerticalBoosterLargeGroup
Extends: Element > Engine > FueledEngine
Functions
getDistance () | Returns the distance to the first object detected in the direction of the thrust. |
getMaxDistance () | Returns the maximum functional distance from the ground. |
Functions
- getDistance ()
-
Returns the distance to the first object detected in the direction of the thrust.
Returns:
-
float
The distance to the first obstacle in meters or -1 if nothing closer than max distance.
- getMaxDistance ()
-
Returns the maximum functional distance from the ground.
Returns:
-
float
The maximum functional distance in meters.