Skip to content

cameraRigUpdate

cameraRigUpdate(world, dt, screenAspect, director, collision?): void

Defined in: sdk/src/camera/CameraRig.ts:172

One frame of every camera’s pipeline, stage by stage. screenAspect is the width over the height of the screen the cameras draw on (0 while it is not known), each camera measured by its share of it (cameraAspect.ts); director is null where no view is resolved; collision is what the deoccluder sweeps with (the 3D physics plugin’s), or null.

World

number

number

CameraDirectorState | null

CameraCollisionProbe | null = null

void