docsby gkjohnson
Switching between a perspective and an orthographic camera every few seconds
Data courtesy of NASA/JPL-Caltech
On this page

Properties

animating: boolean

readonly

alpha: number

readonly

camera: Camera

readonly

mode: string

orthographicOffset: number = 50

fixedPoint: Vector3 = new Vector3()

duration: number = 200

autoSync: boolean = true

easeFunction: function = x => x

Methods

new CameraTransitionManager(
	// Perspective camera to use. Defaults to a new PerspectiveCamera.
	perspectiveCamera?: PerspectiveCamera,

	// Orthographic camera to use. Defaults to a new OrthographicCamera.
	orthographicCamera?: OrthographicCamera
)
toggle(): void
update(
	// Time in seconds since the last frame. Defaults to the clock delta, capped at 64ms.
	deltaTime?: number
): void
syncCameras(): void