Talos docs

VehicleLanding

Since 0.7

{@link Vehicle.landing}: the last touchdown.

Plain text

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

MemberSignatureDescription
countreadonly count: numberTouchdowns so far: goes up by one each time all wheels were off the ground and one comes down.
fallSpeedreadonly fallSpeed: numberThe fastest downward speed of that flight, m/s, 0 or more.
airTimereadonly airTime: numberHow long that flight lasted, seconds.