Interface ICamera

Interface representing a camera with various properties and methods for controlling its behavior.

interface ICamera {
    allowedMovement: Vector3;
    allowedRotation: Vector2;
    defaultForward: Vector3;
    localVelocity: Vector3;
    onMoved: ISignal;
    onSettingsChanged: ISignal;
    orthographic: boolean;
    get forward(): Vector3;
    get hasMoved(): boolean;
    get isLerping(): boolean;
    get matrix(): Matrix4;
    get orbitDistance(): number;
    get position(): Vector3;
    get quaternion(): Quaternion;
    get target(): Vector3;
    get three(): Camera;
    frustrumSizeAt(point: Vector3): Vector2;
    lerp(duration?: number, force?: boolean): CameraMovement;
    save(): void;
    snap(force?: boolean): CameraMovement;
    stop(): void;
}

Implemented by

Properties

allowedMovement: Vector3

Represents allowed movement along each axis using a Vector3 object. Each component of the Vector3 should be either 0 or 1 to enable/disable movement along the corresponding axis.

allowedRotation: Vector2

Represents allowed rotation using a Vector2 object. Each component of the Vector2 should be either 0 or 1 to enable/disable rotation around the corresponding axis.

defaultForward: Vector3

The default forward direction that can be used to initialize the camera.

localVelocity: Vector3

The current or target velocity of the camera.

onMoved: ISignal

A signal that is dispatched when camera moves.

onSettingsChanged: ISignal

A signal that is dispatched when camera settings change.

orthographic: boolean

Represents whether the camera projection is orthographic.

Accessors

Methods