Movable
The Movable component wraps objects to make them draggable and repositionable. This is essential for:
- Creating interactive robot teleoperation interfaces
- Building drag-and-drop 3D editors
- Allowing users to reposition objects in VR/AR
- Implementing interactive demonstrations
Basic Usage
A minimal example that creates a draggable gripper:
Key Parameters
| Parameter | Type | Default | Description |
|---|---|---|---|
key | str | - | Unique identifier for the movable wrapper |
offset | list | [0,0,0] | Optional [x, y, z] offset from the position |
position | list | [0,1,-1] | Initial [x, y, z] position in world coordinates |
quaternion | list | - | Optional [x, y, z, w] quaternion rotation |
rotation | list | - | Optional [x, y, z] Euler rotation |
scale | float/list | 0.1 | Float or [x, y, z] scale factor |
handle | float/list | - | Optional handle size (overrides scale for handle geometry) |
showFrame | bool | True | Show coordinate frame visualization |
wireframe | bool | False | Enable wireframe rendering |
localRotation | bool | False | Use local rotation instead of world rotation |