enqueueVelocity

fun enqueueVelocity(key: Any, velocityX: Float, velocityY: Float)

Queues a linear velocity update for the body associated with key.

Units are interpreted by the runtime (some implementations may treat these as physics units, others as pixel units; prefer runtime-specific helpers if available).

Parameters

key

Body key used in Modifier.physicsBody(key = ...).

velocityX

Velocity X component.

velocityY

Velocity Y component.