ChipmunkBody
.ApplyImpulse() function ApplyImpulse(impulse : Vector2, localPosition : Vector2) : void
impulse | The impulse to apply to the body. |
localPosition | The position in the transform's local coordinates to apply the impulse at. |
Apply an impulse on the body at the given point in the transform's local coords.
Impulses are (nearly) instantaneous forces that act very rapidly on an object. You would use an impulse to model something like a cannon's recoil or applying a hand calculated impact value. In Chipmunk, an impulse is immediately to a rigid body's velocity. Units are mass*velocity, same as momentum.