EnqueueImpulse

data class EnqueueImpulse(val key: Any, val impulseX: Float, val impulseY: Float, val wake: Boolean = true) : PhysicsCommand

Applies a linear impulse to a body.

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.

Constructors

Link copied to clipboard
constructor(key: Any, impulseX: Float, impulseY: Float, wake: Boolean = true)

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val key: Any
Link copied to clipboard