spatial-controls - v6.2.0
    Preparing search index...

    Class RotationManager

    A rotation manager.

    Hierarchy

    Implements

    Index

    Constructors

    Accessors

    Methods

    • Adjusts the spherical system.

      Parameters

      • theta: number

        The angle to add to theta in radians.

      • phi: number

        The angle to add to phi in radians.

      Returns this

      This manager.

    • Returns the projected view direction.

      The projected direction will be reached if there are no further rotation adjustments. If damping is disabled, the vector will be equal to the direction returned by getViewDirection.

      Parameters

      • view: Vector3

        A vector to store the direction in.

      Returns Vector3

      The normalized view direction.

    • Updates the spherical coordinates based on the position and target.

      Returns this

      This manager.

    • Zooms in or out. Only applies in third person mode.

      Parameters

      • sign: number

        The zoom sign. Possible values are [-1, 0, 1].

      Returns this

      This manager.

    Events

    EVENT_UPDATE: "update"

    Triggers when the position or quaternion is changed.