SpatialDragValue
@Immutable
Class that holds data for a spatial drag gesture.
Constructors
Link copied to clipboard
constructor(dragAmount: Offset3D, interactionKind: InteractionKind, inputDevicePose: InputDevicePose, targetEntity: Entity? = null)
Properties
Link copied to clipboard
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).
Link copied to clipboard
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.
Link copied to clipboard
Specifies the type of input interaction triggering the drag (e.g., hand tracking, controller input), helping distinguish between different input sources.
Link copied to clipboard
The 3D Entity being dragged (if the drag targets a 3D model with InteractableComponent and CollisionComponent). Null if dragging a 2D Compose view.