Whether or not this node is enabled. Disabled nodes and their descendents are not included in traversals.
The transformation matrix of this node relative to its parent.
The projection matrix of this camera.
The children of this node. Do not modify this value directly (use Node.addChild and Node.removeChild instead).
The parent of this node. Set this value by calling Node.addChild on the parent.
The rotation of this node relative to its parent.
Readonlybuffer: Readonly<The ArrayBuffer instance referenced by the array.
The rotation of this node relative to its parent.
The scaling of this node relative to its parent.
Readonlybuffer: Readonly<The ArrayBuffer instance referenced by the array.
The scaling of this node relative to its parent.
The root node of this node's scene.
The translation of this node relative to its parent.
Readonlybuffer: Readonly<The ArrayBuffer instance referenced by the array.
The translation of this node relative to its parent.
The view matrix of this camera, which represents the transformation that would move a scene into view of this camera. This is the inverse of this camera's world matrix.
Readonlybuffer: Readonly<The ArrayBuffer instance referenced by the array.
The view projection matrix of this camera, which represents the transformation that would move a scene into view of this camera and apply a projection to it. This is the product of this camera's view matrix and projection matrix.
Readonlybuffer: Readonly<The ArrayBuffer instance referenced by the array.
The world matrix of this node, which represents its transformation relative to the origin.
Readonlybuffer: Readonly<The ArrayBuffer instance referenced by the array.
The translation of this node relative to the origin.
Readonlybuffer: Readonly<The ArrayBuffer instance referenced by the array.
Add a child to this node.
The child. The child's parent will be updated to point to this node. If the child already had a parent, it will be removed from that parent's children.
Get the world view projection matrix created by multiplying this camera's view projection matrix by the given world matrix. This can be used to render a node as it would appear from the perspective of this camera.
The world matrix.
The world view projection matrix.
Readonlybuffer: Readonly<The ArrayBuffer instance referenced by the array.
Reset this node's transformation relative to its parent.
Set this camera to use an orthogonal projection matrix with the given bounds such that the near and far clip planes correspond to a normalized device coordinate Z range of [-1, 1] (OpenGL/WebGL).
The left bound of the frustum.
The right bound of the frustum.
The bottom bound of the frustum.
The top bound of the frustum.
The near bound of the frustum.
The far bound of the frustum.
Set this camera to use an orthogonal projection matrix with the given bounds such that the near and far clip planes correspond to a normalized device coordinate Z range of [0, 1] (WebGPU/Vulkan/DirectX/Metal).
The left bound of the frustum.
The right bound of the frustum.
The bottom bound of the frustum.
The top bound of the frustum.
The near bound of the frustum.
The far bound of the frustum.
Set this camera to use a perspective projection matrix with the given bounds such that the near and far clip planes correspond to a normalized device coordinate Z range of [-1, 1] (OpenGL/WebGL).
The vertical field of view in radians.
The aspect ratio (typically the width of the viewport divided by its height).
The near bound of the frustum. Must be strictly positive.
The far bound of the frustum.
Set this camera to use a perspective projection matrix generated from a field of view. Useful for generating projection matrices to be used with the WebXR API.
The field of view.
The near bound of the frustum.
The far bound of the frustum.
Set this camera to use a perspective projection matrix with the given bounds such that the near and far clip planes correspond to a normalized device coordinate Z range of [0, 1] (WebGPU/Vulkan/DirectX/Metal).
The vertical field of view in radians.
The aspect ratio (typically the width of the viewport divided by its height).
The near bound of the frustum. Must be strictly positive.
The far bound of the frustum.
Remove a child from this node.
The child. The child's parent will be updated to point to nothing.
Rotate this node relative to its parent.
The number of radians to rotate by.
The axis to rotate around.
Rotate this node around the X-axis relative to its parent.
The number of radians to rotate by.
Rotate this node around the Y-axis relative to its parent.
The number of radians to rotate by.
Rotate this node around the Z-axis relative to its parent.
The number of radians to rotate by.
Scale this node relative to its parent.
The scaling factor.
Position this node such that it is pointing at a target position.
The new position of this node.
The position for this node to point at.
The up vector.
Translate this node relative to its parent.
The translation vector.
Perform a function on this node and each of its children recursively.
The function to perform for each node. Receives as an argument the node and the node's transformation matrix relative to the node on which the traversal started. If this function returns false, the node's children are not included in the traversal.
A camera that views a scene.