Optional
fov: numberOptional
aspect: numberOptional
near: numberOptional
far: numberRest
...object: IObject3D<IObject3DEvent<IObject3DEventTypes>, IObject3DEventTypes>[]Automatically manage aspect ratio based on window/canvas size.
Defaults to true
if domElement(canvas) is set.
Automatically manage near and far clipping planes based on scene size.
Optional
recursive: booleanOptional
recursive: booleanOptional
distanceFromTarget: numberOptional
worldSpace: booleanFar clipping plane. This is managed by RootScene for active cameras To change the maximum that's possible set maxFarPlane To use a fixed value set autoNearFar to false and set maxFarPlane
Maximum far clipping plane allowed. (Distance from camera) Used in RootScene when autoNearFar is true.
Minimum near clipping plane allowed. (Distance from camera) Used in RootScene when autoNearFar is true.
0.2
Near clipping plane. This is managed by RootScene for active cameras To change the minimum that's possible set minNearPlane To use a fixed value set autoNearFar to false and set minNearPlane
Readonly
positionLocal position of camera.
Rest
...object: IObject3D<IObject3DEvent<IObject3DEventTypes>, IObject3DEventTypes>[]Readonly
targetThe target position of the camera (where the camera looks at). Also syncs with the controls.target, so it's not required to set that separately. Note: this is always in world-space Note: autoLookAtTarget must be set to trye to make the camera look at the target when no controls are enabled
use this
instead
Check whether user can interact with this camera. Interactions can be enabled/disabled in a variety of ways, like setInteractions, controlsMode, isMainCamera property
If interactions are enabled for this camera. It can be disabled by some code or plugin. see also setInteractions
use canUserInteract to check if the user can interact with this camera
use isMainCamera instead
use this
instead
Protected
_nearOptional
meta: anyuse <T>camera.controls
instead
Optional
_view: TDispatches 'objectUpdate' event on object.
Optional
options: Event | IObjectSetDirtyOptionsSet camera view from another camera.
Optional
distanceFromTarget: numberdefault = 4
default = true
Dispatches the setView
event which triggers the main camera to set its view to this camera's view.
Generated using TypeDoc
Empty class with the constructor same as PerspectiveCamera in three.js. This can be used to remain compatible with three.js construct signature.