josephg / Chipmunk-js

Port of slembcke/Chipmunk-Physics to Javascript
http://dl.dropbox.com/u/2494815/demo/Joints.html
536 stars 59 forks source link

Fix velocity limits and minor optimization #15

Closed parasyte closed 11 years ago

parasyte commented 11 years ago

Velocity limiting looks broken; accessing and invalid variable.

The minor optimization removes some dynamic variable declarations, and unnecessary temporary variables.

josephg commented 11 years ago

Pulling. I'm not convinced about the style changes, but the bug fix in cpBody looks important.