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

    Class SpatialControls

    Spatial controls for 3D translation and rotation.

    This class emits events of type EVENT_UPDATE when the position or quaternion is changed.

    Hierarchy

    Implements

    Index

    Constructors

    Properties

    constraints: Set<Constraint<Vector3>>

    Custom constraints for position and target.

    settings: Settings

    The control settings.

    Accessors

    • get enabled(): boolean

      Indicates whether the controls are enabled.

      Event listeners will be registered or unregistered depending on this flag.

      Returns boolean

    • set enabled(value: boolean): void

      Parameters

      • value: boolean

      Returns void

    Methods

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

    Events

    EVENT_UPDATE: "update"

    Triggers when the position or quaternion is changed.