Hierarchy

Constructors

Properties

_camera: Camera
_clock: Clock = ...
_duration: number = 1
onProgress: ((progress: number) => void)

Type declaration

    • (progress: number): void
    • Parameters

      • progress: number

      Returns void

Methods

  • Sets the camera's orientation and position to focus on the specified target.

    Parameters

    • target: "all" | Box3 | Sphere | Vim | IObject

      The target object, or 'all' to frame all objects.

    • Optional forward: Vector3

      Optional forward direction after framing.

    Returns void

  • Moves the camera along a specified axis by a given amount.

    Parameters

    • amount: number

      The amount to move the camera.

    • axis: "X" | "Y" | "Z"

      The axis along which to move the camera ('X', 'Y', or 'Z').

    Returns void

  • Moves the camera in a specified 2D direction within a plane defined by the given axes.

    Parameters

    • vector: Vector2

      The 2D vector representing the direction of movement.

    • axes: "XY" | "XZ"

      The axes defining the plane of movement ('XY' or 'XZ').

    Returns void

Generated using TypeDoc