[page:Object3D] →

[name]

Abstract base class for cameras. This class should always be inherited when you build a new camera.

Constructor

[name]()

This constructor sets the following properties to the correct type: [page:Camera.matrixWorldInverse matrixWorldInverse] and [page:Camera.projectionMatrix projectionMatrix].

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: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.

[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.

Methods

See the base [page:Objct3D] class for common methods.

[method:Vector3 getWorldDirection]( [page:Vector3 optionalTarget] )

vector — (optional)

Returns a vector representing the direction in which the camera is looking, in world space. If the [page:Vector3 optionalTarget] is set, returns a vector representing the direction from the camera's position to the [page:Vector3 optionalTarget].

[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).

[method:Camera clone]( [page:Camera camera] )

camera — camera to clone

Returns a clone of camera.

Source

[link:https://github.com/mrdoob/three.js/blob/master/src/[path].js src/[path].js]