Skip to main content

Function: focusCamera()

focusCamera(scene, target, options): PerspectiveCamera

Defined in: src/animation/camera/CameraFocus.ts:118

A copy of the scene camera placed at the pose a focus move would end on, from the current pose. For tests that need the final view before the move runs (for example the occluder rule of FocusDim).

Parameters​

scene​

ThreeDScene

target​

Vector3Tuple | Mobject

options​

CameraFocusOptions = {}

Returns​

PerspectiveCamera

Post​

result !== scene.camera3D.getCamera()