[page:Object3D] →
[name]
Abstract base class for cameras. This class should always be inherited when you build a new camera.
Constructor
[name]()
Creates a new [name]. Note that this class is not intended to be called directly;
you probably want a [page:PerspectiveCamera] or [page:OrthographicCamera] instead.
Properties
See the base [page:Object3D] class for common properties.
[property:Boolean isCamera]
Used to check whether this or derived classes are cameras. Default is *true*.
You should not change this, as it used internally by the renderer for optimisation.
[property:Layers layers]
The [page:Layers layers] that the camera is a member of. This is an inherited
property from [page:Object3D].
Objects must share at least one layer with the camera to be seen
when the camera's viewpoint is rendered.
[property:Matrix4 matrixWorldInverse]
This is the inverse of matrixWorld. MatrixWorld contains the Matrix which has
the world transform of the Camera.
[property:Matrix4 projectionMatrix]
This is the matrix which contains the projection.
Methods
See the base [page:Object3D] class for common methods.
[method:Camera clone]( )
Return a new camera with the same properties as this one.
[method:Camera copy]( [page:Camera source] )
Copy the properties from the source camera into this one.
[method:Vector3 getWorldDirection]( [page:Vector3 optionalTarget] )
Returns a [page:Vector3] representing the world space direction in which the camera is looking.
Note: This is not the camera’s positive, but its negative z-axis, in contrast to
[page:Object3D.getWorldDirection getWorldDirection] of the base class (Object3D).
If an [page:Vector3 optionalTarget] vector is specified, the result will be copied into this vector
(which can be reused in this way), otherwise a new vector will be created.
[method:null lookAt]( [page:Vector3 target] )
target — position in 3D space for the camera to point towards
This makes the camera look at the vector position in the global space as long as
the parent of this camera is the scene or at position (0,0,0).
Source
[link:https://github.com/mrdoob/three.js/blob/master/src/[path].js src/[path].js]