BeginDrag

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

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.