Optional
controlsMode: stringOptional
domElement: HTMLCanvasElementOptional
autoAspect: booleanOptional
frustumSize: numberOptional
left: numberOptional
right: numberOptional
top: numberOptional
bottom: numberOptional
near: numberOptional
far: numberOptional
aspect: numberAspect ratio to use when frustumSize is defined
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.
Camera frustum bottom plane.
Array with object's children.
Returns a clone of this
object and optionally all descendants.
Optional
recursive: booleanIf true, descendants of the object are also cloned. Default true
Copy the given object into this object
Note: event listeners and user-defined callbacks (.onAfterRender and .onBeforeRender) are not copied.
Fire an event type.
The event that gets fired.
Far 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
Searches through an object and its children, starting with the object itself, and returns the first with a matching id.
Searches through an object and its children, starting with the object itself, and returns the first with a matching name.
Searches through an object and its children, starting with the object itself, and returns the first with a property that matches the value given.
Camera frustum left plane.
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.
Optional name of the object
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
Object's parent in the scene graph.
Readonly
positionObject's local position.
Group for info on manually grouping objects.
Camera frustum right plane.
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 true
to make the camera look at the target when no controls are enabled
Camera frustum top plane.
Executes the callback on this object and all descendants.
Executes the callback on all ancestors.
Like traverse, but the callback will only be executed for visible objects
An object that can be used to store custom data about the Object3D.
Object gets rendered if true
.
Gets or sets the zoom factor of the camera.
Check whether user can interact with this camera. Interactions can be enabled/disabled in a variety of ways, like setInteractions, controlsMode, isMainCamera property
Frustum size of the camera. This is used to calculate bounds (left, right, top, bottom) based on aspect ratio. Set to 0 (or negative) value to disable automatic, and to set the bounds manually.
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
Protected
_nearOptional
meta: anyOptional
_view: TDispatches 'objectUpdate' event on object.
Optional
options: Event | IObjectSetDirtyOptionsDispatches the setView
event which triggers the main camera to set its view to this camera's view.
Adds another Object3D as child of this Object3D.