Creates a new WebaniPerspectiveCamera instance.
The configuration options for the camera.
OptionalanimationOptional animation class used for interpolated animations.
Optional animation class used for interpolated animations.
An array of additional world transforms that modify the object.
The far plane distance for the camera.
The field of view of the camera.
The near plane distance for the camera.
OptionalparentThe parent transformable object, if any.
Flag indicating whether to apply scale compensation for the parent object.
The world transform of the object, including position, rotation, and scale.
Flag indicating whether to use the origin as the center of rotation.
Returns the world position of the camera, based on its transform.
The complete world transforms of the object's extra transformations, including position, rotation, scale, and rotational center.
An array of CompleteWorldTransform objects for the extra transforms.
The complete world transform of the object, including position, rotation, scale, and rotational center.
The complete world transform as a CompleteWorldTransform object.
A copy of the extra transforms array.
A new array with copies of the extra transforms.
The combined matrix of all extra transforms without scale compensation.
A Matrix4 object representing the combined matrix of all extra transforms.
Returns the local center of the camera, always [0, 0, 0].
The model matrix of the object, including scale compensation if needed.
A Matrix4 object representing the model matrix with scale compensation.
The model matrix of the object without scale compensation.
A Matrix4 object representing the model matrix without scale compensation.
Returns the position of the camera, transformed by any extra transforms applied.
Computes the camera's rotation, accounting for any extra transforms.
The camera's rotation as a Vector3.
Creates a shallow copy of the WebaniTransformable object.
A new instance of WebaniTransformable with the same properties as the current object.
A copy of the main transform.
A new WorldTransform object that is a copy of the main transform.
Computes the view matrix of the camera based on its position and rotation.
A Matrix4 representing the view matrix.
Computes the projection matrix for the camera, given the screen dimensions.
The width of the screen.
The height of the screen.
A Matrix4 representing the projection matrix.
Scales the object by a specified factor.
The scaling factor as a Vector3 object.
Sets the position of the object.
The new position as a Vector3 object.
Sets the scale of the object.
The new scale as a Vector3 object.
Translates the object by a specified offset.
The offset to translate the object by.
A class representing a perspective camera in a 3D environment. It extends from WebaniTransformable to support position, rotation, and other transformations.