世界修改preferredA preferred radius for rotation rings, in world units. The rendered radius remains at least its normal camera-sized radius and may be reduced to the screen-space cap when the preferred radius would exceed the usable viewport. Set zero to use camera-sized rings.
This property affects rotation rings only and does not change translation handles.
世界修改rotation世界修改rotation世界修改visualThe width, in degrees, of the step cell drawn on the ring during a drag, for consumers that commit rotation in fixed steps. The value must be finite and nonnegative. Set zero to draw no step cell.
This is visual only. It does not snap the drag and does not
change the deltaDegrees or totalDegrees values reported
by rotation events. A consumer that wants stepped rotation
must apply its own snapping.
世界修改
可选eventFunction: (arg0: WidgetGizmoRotationEvent) => void
A code closure called with a WidgetGizmoRotationEvent each time a rotation is grabbed, moved, released, or cancelled. Omit it to remove the current handler.
Set the handler called for every rotation lifecycle event on this gizmo's rings. Call with no argument to remove the current handler.
Each ring drag reports one Grabbed event, any number of
Moved events, and exactly one terminal Released or
Cancelled event. Rotation is a separate consumer-owned
input stream. It does not select the translation gizmo or
invoke widget-group mouse-down, drag, or mouse-up behavior.
The consumer owns snapping and state application.
The rotation surface of a gizmo component. It configures which rotation rings are shown, where they are centered, how large they are, and how a live drag is drawn, and it delivers the rotation lifecycle events the rings produce.
Rotation is disabled until at least one axis is enabled through
rotationAxes.