OrbitalCamera
Constructors
Properties
Functions
Enables the perspective camera. Use this faster method instead of .isolated() if you don't need to revert back to the orthographic projection.
Zooms the camera in by decreasing the distance to the target. The zoom is based on an exponential scale factor determined by the zoomSpeed
field. If the instant
parameter is set to true
, the zoom effect is applied immediately; otherwise, it will interpolate the change over time.
Temporarily enables this camera, calls function to draw using that camera, then disables it by popping the last matrix changes. It makes it easy to combine perspective and orthographic projections in the same program.
Rotates the orbital camera to the specified position defined by the eye
vector. The rotation can either occur instantly or smoothly interpolated over time, depending on the instant
parameter.
Rotates the camera to the specified spherical angles. The rotation can occur instantly or smoothly over time based on the instant
parameter.
Updates the camera position, orientation, and view properties such as spherical coordinates, look-at point, field of view, and magnitude based on damping factors and time delta.
Computes and returns the view matrix for the orbital camera. The view matrix is calculated using the current spherical coordinates, look-at position, and the up vector (Vector3.UNIT_Y).