ChipmunkBody
.ApplyForce() function ApplyForce(force : Vector2, localPosition : Vector2) : void
force | The force to apply to the body. |
localPosition | The position in the transform's local coordinates to apply the force at. |
Apply (accumulate) a force on the body at the given point in the transform's local coords.
This will add to the current ChipmunkBody.force
and ChipmunkBody.torque
values. Make sure to reset the values if you are reapplying the function every fixed time step.