Class CameraMovementAbstract

Hierarchy (View Summary)

Constructors

Methods

  • 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

  • Changes the distance between the camera and its target by a specified factor.

    Parameters

    • amount: number

      The factor by which to change the distance (e.g., 0.5 for halving the distance, 2 for doubling the distance).

    Returns void