chaseCameraPosition

function chaseCameraPosition
camera.ts:75
chaseCameraPosition(scene: RenderScene, offset: Vec3, clearance: number) → Vec3

Where to put the camera this frame, in render space.

The clearance is measured against the ship's altitude, not the ground directly under the camera. At 14 m of separation on terrain whose features are kilometers wide the difference is centimeters, and sampling the heightfield from here would mean the renderer asking the universe a question mid-frame.

sceneRenderScene
Undocumented
offsetVec3
Undocumented
clearancenumber
Undocumented
ReturnsVec3