@minecraft/server-editor
    Preparing search index...

    Class WidgetGizmoRotationEventBeta

    A single point in the lifecycle of a rotation ring drag, delivered to the handler registered with WidgetGizmoRotation.setStateChangeEvent. All angles it reports are in degrees.

    Index

    Properties

    axis: Axis

    The world axis of the ring being dragged. The value is exactly one of Axis.X, Axis.Y, or Axis.Z. Every event in one drag reports the same axis.

    The gizmo component that produced this rotation event.

    deltaDegrees: number

    The signed change in rotation, in degrees, since the previous event of this drag. Only Moved events carry an incremental delta. It is zero on Grabbed, Released, and Cancelled events and is measured with the right-hand rule about the positive direction of axis.

    Which point in the drag this event reports.

    totalDegrees: number

    The signed rotation accumulated, in degrees, since the drag was grabbed. It is zero on the Grabbed event, is measured with the right-hand rule about the positive direction of axis, and is not wrapped, so a drag of several turns keeps growing past a full circle.

    widget: Widget

    The widget that owns the gizmo which produced this rotation event.