EnqueueImpulse

constructor(key: Any, impulseX: Float, impulseY: Float, wake: Boolean = true)

Parameters

key

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

impulseX

X component of impulse (runtime-defined units).

impulseY

Y component of impulse (runtime-defined units).

wake

Whether the backend should wake the body if supported.