schteppe / cannon.js

A lightweight 3D physics engine written in JavaScript.
http://schteppe.github.com/cannon.js
MIT License
4.67k stars 709 forks source link

How does applyImpulse work? #272

Open AndrewRayCode opened 8 years ago

AndrewRayCode commented 8 years ago

See https://github.com/schteppe/cannon.js/blob/master/src/objects/Body.js#L750-L758

Apply impulse to a world point.

but then

Body.prototype.applyImpulse = function(impulse, relativePoint){

schteppe commented 8 years ago

You're right, formulation is a bit bad. Wanna make a PR? In any case, thanks for spotting this.