SpatialDragValue
Class that holds data for a spatial drag gesture.
Constructors
Properties
3D offset representing the distance moved since the last drag event (delta X, Y, Z) in pixels. Use this to update the position of 2D views (via Modifier.offset and Modifier.zOffset) or 3D entities (via TransformComponent). For lifecycle callbacks such as onDragStart, onDragEnd, and onDragCancel, this value is Offset3D.Zero.
Contains the position and orientation of the input device (e.g., controller, hand) at the moment of the drag event, useful for advanced interaction logic.
Specifies the type of input interaction triggering the drag (e.g., hand tracking, controller input), helping distinguish between different input sources.
The 3D Entity being dragged (if the drag targets a 3D model with InteractableComponent and CollisionComponent). Null if dragging a 2D Compose view.