VehicleLanding
Since 0.7
{@link Vehicle.landing}: the last touchdown.
Watch count change to play a landing effect, sound or camera bump in one line. ts // A thump scaled by how hard it came down. update(ctx) { const l = ctx.vehicle?.landing if (l && l.count !== this.seen) { this.seen = l.count if (l.fallSpeed > 3) ctx.log("thump", l.fallSpeed) } }
Signature
export interface VehicleLanding {
/** Touchdowns so far: goes up by one each time all wheels were off the ground and one comes down. */
readonly count: number
/** The fastest downward speed of that flight, m/s, 0 or more. */
readonly fallSpeed: number
/** How long that flight lasted, seconds. */
readonly airTime: number
}
Import: import type { VehicleLanding } from "@argus/api"
Members
| Member | Signature | Description |
|---|---|---|
count | readonly count: number | Touchdowns so far: goes up by one each time all wheels were off the ground and one comes down. |
fallSpeed | readonly fallSpeed: number | The fastest downward speed of that flight, m/s, 0 or more. |
airTime | readonly airTime: number | How long that flight lasted, seconds. |