EnqueueImpulse

constructor(key: Any, impulseXPx: Float, impulseYPx: Float, wake: Boolean = true)

Parameters

key

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

impulseXPx

X component of impulse in container pixels (Px). Converted internally to physics impulse units by dev.zinchenko.physicsbox.units.PhysicsUnits.

impulseYPx

Y component of impulse in container pixels (Px). Converted internally to physics impulse units by dev.zinchenko.physicsbox.units.PhysicsUnits.

wake

Whether the backend should wake the body if supported.