Begin Drag
data class BeginDrag(val key: Any, val grabPointPx: PhysicsVector2, val pointerId: Long? = null, val targetPx: PhysicsVector2, val dragConfig: DragConfig) : PhysicsCommand
Begins a drag interaction for a body.
Parameters
key
Body key.
grab Point Px
Point on the body that was "grabbed" (container px).
pointer Id
Optional pointer identifier (multi-touch / pointer tracking).
target Px
Initial drag target (container px).
drag Config
Drag tuning parameters.
Constructors
Link copied to clipboard
constructor(key: Any, grabPointPx: PhysicsVector2, pointerId: Long? = null, targetPx: PhysicsVector2, dragConfig: DragConfig)