Module vehicle

Source
Expand description

Arcade ground/hover and assisted-flight motors. Outputs are candidate motion; hosts resolve collisions, terrain, boost resources and race/mission authority.

Validate handling at setup with PlanarHandling::validate or FlightHandling::validate. Telemetry is a read-only snapshot and never advances the motor; feed step only the host’s fixed simulation interval. Reset helpers clear steering momentum without inspecting the previous state, so they can also recover a motor whose public fields have become invalid. Hosts still own collision-safe spawn selection, flight position, interpolation history, camera history and gameplay resources.

Structs§

DriveInput
FlightHandling
FlightState
FlightTelemetry
An assisted-flight snapshot produced by FlightState::telemetry. This motor has no position or terrain knowledge, so altitude and clearance remain host measurements. Bank is visual and does not rotate the velocity.
PlanarHandling
PlanarState
PlanarTelemetry
A planar motor snapshot produced by PlanarState::telemetry. Distances use host world units; angles are radians and rates use seconds.

Enums§

VehicleError
A checked vehicle operation rejected its input or an unrepresentable result.