API

Function createBankedFreeCamera

  • Creates a free camera whose look-at up vector is explicit and mutable, so the camera can roll.

    The camera is otherwise identical to createFreeCamera: plain data, positioned in world space, looking at target, left-handed. Setting upVector (e.g. easing it toward a vehicle's up axis) rolls the view; a degenerate up (parallel to the view direction) falls back to an identity rotation, matching createFreeCamera.

    Parameters

    • position: Vec3

      World-space camera position.

    • target: Vec3

      World-space point the camera looks at.

    • up: Vec3 = ...

      Initial world-space up vector. Defaults to world +Y.

    Returns BankedFreeCamera

    Plain BankedFreeCamera data — the caller assigns it to scene.camera.