stepFlight

function stepFlight
simulation/src/flight.ts:231
stepFlight(world: FlightWorld, entity: Entity, landed: boolean, options: StepFlightOptions) → FlightResult

Advance one entity by one tick.

Pure with respect to the world: it reads frames and bindings and returns a new state, which is what lets the same function run in a worker or on a server. The one thing it writes is the soi watch it is handed — the bounds are re-based in place and the same object comes back in the result — so a watch belongs to exactly one sequence of calls, and a call whose result is discarded has still consumed the watch's gaps.

worldFlightWorld
Undocumented
entityEntity
Undocumented
landedboolean
Undocumented
optionsStepFlightOptions
Undocumented