schteppe / p2.js

JavaScript 2D physics library
Other
2.64k stars 330 forks source link

Refactoring Springs #148

Closed Hounshell closed 1 year ago

Hounshell commented 9 years ago

Hey, I'm using p2 for a display I'm building, but I'm trying to model force interactions that aren't accurately described by springs. I think this refactoring abstracts forces a little differently, and it helps form the basis of other attractors/repulsors. I've run the tests and nothing seems broken. Not sure what else you'd like me to run to verify that changes are non-breaking.

pkieltyka commented 7 years ago

this looks very cool, any chance to get this reviewed/merged?