OptionalmatrixThe transformation matrix representing the current position, rotation, and scale. Create this from your position and rotation state.
OptionalonCallback fired continuously while dragging. Receives the updated transformation matrix. Use this to update your object's position and rotation.
OptionalonCallback fired when dragging starts. Important: Use this to disable map interactions to prevent conflicts.
OptionalonCallback fired when dragging ends. Use this to re-enable map interactions.
OptionalscaleScale factor for the control gizmo size in meters. Choose a value appropriate for your zoom level and object size.
OptionalfixedWhen true, the gizmo maintains a fixed screen size regardless of zoom level.
OptionaldisableDisable translation (movement) controls.
true: Disable all translation axesfalse: Enable all translation axes[x, y, z]: Disable specific axes (true = disabled)// Disable all translations (rotation only mode)
<EnhancedPivotControls disableTranslations />
// Only allow horizontal movement (X and Z)
<EnhancedPivotControls disableTranslations={[false, true, false]} />
// Only allow vertical movement (Y axis)
<EnhancedPivotControls disableTranslations={[true, false, true]} />
OptionaldisableDisable rotation controls.
true: Disable all rotation axesfalse: Enable all rotation axes[x, y, z]: Disable specific axes (true = disabled)OptionalannotationsShow angle annotations while rotating. Displays a tooltip with the rotation angle in degrees during drag operations.
OptionalactiveControl which axes are visible and interactive.
Set to [x, y, z] where true = active.
OptionalrotationThickness of the rotation ring relative to its radius. Higher values make the rings easier to click but more visually prominent.
OptionaltranslationThickness of the translation arrow shaft relative to scale.
OptionalarrowSize of the arrow head relative to scale.
OptionalarrowLength of the translation arrows relative to scale.
OptionalarrowLength of the arrow head relative to scale.
OptionalvisibleWhether the control gizmo is visible. Use this to hide controls when not in edit mode.
OptionalenabledWhether the control is interactive. When false, the gizmo is displayed but grayed out and non-interactive. Useful for showing controls for non-selected objects.
Props for the EnhancedPivotControls component.
Example: Basic usage
Example: Rotation only (no translation)
Example: Custom appearance