BeginDrag

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.

grabPointPx

Point on the body that was "grabbed" (container px).

pointerId

Optional pointer identifier (multi-touch / pointer tracking).

targetPx

Initial drag target (container px).

dragConfig

Drag tuning parameters.

Constructors

Link copied to clipboard
constructor(key: Any, grabPointPx: PhysicsVector2, pointerId: Long? = null, targetPx: PhysicsVector2, dragConfig: DragConfig)

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val key: Any
Link copied to clipboard
Link copied to clipboard