Class: ThirdPersonCamera

ThirdPersonCamera(optionsopt)

Perspective third-person camera with adjustable mode for camera bobbing.

Constructor

new ThirdPersonCamera(optionsopt)

Parameters:
Name Type Attributes Default Description
options ThirdPersonCameraOptions <optional>
{} Camera options.
Source:

Classes

ThirdPersonCamera

Members

mode

Current camera mode.
Source:

(static) Modes

Supported third-person camera modes.
Source:

Methods

getProjectionMatrix() → {Float32Array}

Returns the projection matrix for this camera. The returned matrix is cached and reused between calls.
Source:
Returns:
- Cached projection matrix.
Type
Float32Array

setAspectRatio(aspectRatio)

Updates the aspect ratio and marks projection cache as dirty.
Parameters:
Name Type Description
aspectRatio number New viewport aspect ratio (canvas width divided by canvas height).
Source:

setMode(mode)

Updates the camera mode.
Parameters:
Name Type Description
mode string New camera mode.
Source: