applyLinearImpulse

expect fun applyLinearImpulse(impulse: Vec2, point: Vec2, wake: Boolean = true)

Apply an impulse at a world point. This immediately modifies the velocity.

Parameters

impulse

The world impulse vector (usually in Ns or kgm/s)

point

The world position of the point of application

wake

Whether to wake up the body if sleeping