Interface: CameraSettings
Properties
alpha
alpha:
number
Defines the rotation angle of the camera along the longitudinal axis.
beta
beta:
number
Defines the rotation angle of the camera along the latitudinal axis.
collision?
optional
collision:boolean
Defines whether the camera should check collision with the objects oh the scene.
collisionRadius?
optional
collisionRadius:number
[]
Defines the collision radius of the camera. This simulates a sphere around the camera.
disableCameraControls?
optional
disableCameraControls:boolean
If true
, it will remove all controls over camera. It would be possible to change camera position only programmatically
fov
fov:
number
Camera field of view. Set in radians
fovMode
fovMode:
FovMode
Sets the camera frustum bounds to the viewport bounds.
framingTime?
optional
framingTime:string
|number
The transition time when framing the mesh, in milliseconds
id?
optional
id:string
Unique camera ID
idleRotationSpeed?
optional
idleRotationSpeed:string
|number
Default speed at which the camera rotates around the model.
idleRotationSpinupTime?
optional
idleRotationSpinupTime:string
|number
The time (milliseconds) to take to spin up to the full idle rotation speed.
idleRotationWaitTime?
optional
idleRotationWaitTime:string
|number
The time (in milliseconds) to wait after user interaction before the camera starts rotating.
inertia?
optional
inertia:number
Define the default inertia of the camera. This helps giving a smooth feeling to the camera movement.
isEnabled?
optional
isEnabled:boolean
If true
, camera is enabled
isLocked?
optional
isLocked:boolean
If true
, camera position will be locked at current state
isOrtho?
optional
isOrtho:boolean
Define the mode of the camera (Camera.PERSPECTIVE_CAMERA or Camera.ORTHOGRAPHIC_CAMERA)
limitTarget?
optional
limitTarget:number
[]
Limit target
lowerAlphaLimit
lowerAlphaLimit:
number
Minimum allowed angle on the longitudinal axis. This can help limiting how the Camera is able to move in the scene.
lowerBetaLimit?
optional
lowerBetaLimit:number
Minimum allowed angle on the latitudinal axis. This can help limiting how the Camera is able to move in the scene.
lowerRadiusLimit?
optional
lowerRadiusLimit:number
Minimum allowed distance of the camera to the target (The camera can not get closer). This can help limiting how the Camera is able to move in the scene.
maxZ?
optional
maxZ:number
Define the maximum distance the camera can see to. This is important to note that the depth buffer are not infinite and the further it end the more your scene might encounter depth fighting issue.
minZ?
optional
minZ:number
Define the minimum distance the camera can see from. This is important to note that the depth buffer are not infinite and the closer it starts the more your scene might encounter depth fighting issue.