applyImpulseLocal(impulse, localX, localY)
Apply impulse to a point local to the body.
This could for example be a point on the Body surface. An impulse is a force added to a body during a short
period of time (impulse = force * time). Impulses will be added to Body.velocity and Body.angularVelocity.
Parameters
Name | Type | Description |
---|---|---|
impulse | Float32Array | Array | The impulse vector to add, oriented in local space. |
localX | number | A local point on the body. |
localY | number | A local point on the body. |
- Source code: physics/p2/Body.js (Line 544)
Please login to continue.