RigidBody2D.applyImpulse

Applies a positioned impulse to the body (which will be affected by the body mass and shape). This is the equivalent of hitting a billiard ball with a cue: a force that is applied instantaneously. Both the impulse and the offset from the body origin are in global coordinates.

struct RigidBody2D
@nogc nothrow
void
applyImpulse
(
in Vector2 offset
,
in Vector2 impulse
)

Meta