five-on-it / apps/client/src/renderer/camera / desiredCameraPose
Function: desiredCameraPose()
desiredCameraPose(
car,velocity,zoom?,lead?,heightScale?):CameraPose
Defined in: apps/client/src/renderer/camera.ts:255
The camera pose that should be aimed for, given the car's position and velocity and the zoom (how much higher than at standstill, a share of it: SpeedZoom in a car, footZoom on foot); heightScale raises or lowers it all (the settings' camera height: 1 the game's).
Parameters
car
velocity
zoom?
number = 0
lead?
Vec3 = ...
heightScale?
number = 1