Drives a SceneModel transform as an aircraft and keeps a View camera attached to the aircraft.

The controller adapts VehicleNavigationController to aircraft-style flight. It owns a lightweight proxy View for the SDK vehicle controller, then maps that proxy camera state into:

  • the caller-provided aircraft root transform,
  • a smoothed visual aircraft pose,
  • optional AircraftExhaustTrail updates, and
  • the real View camera preset.

A repeating SDKTask is created during construction. Call AircraftController.destroy when the aircraft should stop updating.

const controller = new AircraftController(view, {
rootTransform,
config: {
modelId: "aircraft",
forwardAxis: "-Z",
startSpeed: 40,
startFlying: true
}
});
controller.setCameraPreset("front");
controller.adjustExteriorCameraDistance(-1);

Constructors

Properties

Underlying SDK vehicle navigation controller.

Mutable physical, visual and camera state.

type: "vehicle-navigation-aircraft"

Stable controller type string for diagnostics and app-level routing.

updateMode: "sdk-task" | "raf"

Update loop implementation. Currently always "sdk-task".

Proxy View passed to VehicleNavigationController.

Methods

  • Moves the active exterior camera closer or farther from the aircraft.

    No-op while the cockpit preset is active. Keyboard bindings call this for - and +.

    Parameters

    • direction: -1 | 1

      -1 to move closer, 1 to move farther.

    Returns void