flightCameraPose

function flightCameraPose
camera.ts:268
flightCameraPose(scene: RenderScene, state: FlightCameraState, hullLength: number, chaseOffset: Vec3, clearance: number) → { orientation: Quat; position: Vec3 }

Where the flight camera stands and looks this frame, in render space.

The chase view with no look offset is chaseCameraPosition and the ship's own orientation, exactly — the frame every screenshot in the repository is measured against. The orbit view looks at the ship's center with the horizon leveled to the local up, and both views lift the eye off the ground by the same rule.

sceneRenderScene
Undocumented
stateFlightCameraState
Undocumented
hullLengthnumber
Undocumented
chaseOffsetVec3

The chase standoff, when it is not the hull's own. The debug cone has a hand-tuned one that predates chaseOffsetFor, and a modeled hull never passes this.

clearancenumber
Undocumented
Returns{ orientation: Quat; position: Vec3 }