Skip to content

captureCameraPose

function

Back to Helios Web API

Kind
function
Source
src/rendering/CameraTransitionController.js:171

Description

Capture a renderer camera into a serializable pose object.

Signature

export function captureCameraPose(camera) {

Parameters

NameTypeAttributesDefaultDescription
cameraObjectCamera object owned by the active renderer.

Returns

Pose snapshot, or null when no camera is supplied.

Type Object|null

Example

const pose = captureCameraPose(helios.renderer.camera);