Manages viewer camera movement and position

Hierarchy

  • Camera

Implements

Constructors

Properties

_savedPosition: Vector3 = ...
_savedTarget: Vector3 = ...
_scene: RenderScene
camOrthographic: OrthographicWrapper
camPerspective: PerspectiveWrapper

Accessors

  • get 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.

    Returns Vector3

  • set allowedMovement(axes: Vector3): void
  • 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.

    Parameters

    • axes: Vector3

    Returns void

  • get 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.

    Returns Vector2

  • set allowedRotation(axes: Vector2): void
  • 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.

    Parameters

    • axes: Vector2

    Returns void

  • get three(): PerspectiveCamera | OrthographicCamera
  • The current THREE Camera

    Returns PerspectiveCamera | OrthographicCamera

Methods

  • Calculates the frustum size at a given point in the scene.

    Returns

    The frustum size at the specified point.

    Parameters

    • point: Vector3

      The point in the scene to calculate the frustum size at.

    Returns Vector2

  • Interface for smoothly moving the camera over time.

    Returns

    The camera movement api.

    Parameters

    • Optional duration: number = 1

      The duration of the camera movement animation.

    • Optional force: boolean = false

      Set to true to ignore locked axis and rotation.

    Returns CameraMovement

Generated using TypeDoc