ProjectionManager
Object to control the CameraProjection of the OrthoPerspectiveCamera.
Properties
camera
camera:
PerspectiveCamera|OrthographicCamera
The camera controlled by this ProjectionManager. It can be either a PerspectiveCamera or an OrthographicCamera.
current
current:
CameraProjection="Perspective"
Current projection mode of the camera. Default is "Perspective".
matchOrthoDistanceEnabled
matchOrthoDistanceEnabled:
boolean=false
Match Ortho zoom with Perspective distance when changing projection mode
onChanged
readonlyonChanged:Event<PerspectiveCamera|OrthographicCamera>
Event that fires when the CameraProjection changes.
Methods
set()
set(
projection):Promise<void>
Sets the CameraProjection of the OrthoPerspectiveCamera.
Parameters
| Parameter | Type | Description |
|---|---|---|
projection | CameraProjection | the new projection to set. If it is the current projection, |
| it will have no effect. |
Returns
Promise<void>
toggle()
toggle():
Promise<void>
Changes the current CameraProjection from Ortographic to Perspective and vice versa.
Returns
Promise<void>