Enqueue Impulse
data class EnqueueImpulse(val key: Any, val impulseXPx: Float, val impulseYPx: Float, val wake: Boolean = true) : PhysicsCommand
Applies a linear impulse to a body.
Parameters
key
Body key used in Modifier.physicsBody(key = ...).
impulse XPx
X component of impulse in container pixels (Px). Converted internally to physics impulse units by dev.zinchenko.physicsbox.units.PhysicsUnits.
impulse YPx
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.