jonobr1 / Physics

A requirified port of Traer Physics from Processing to JavaScript.
http://jonobr1.github.com/Physics
Other
195 stars 21 forks source link

onEquilibrium event? #5

Closed Jared314 closed 10 years ago

Jared314 commented 10 years ago

I'm trying to incorporate, into my app, layout calculations based on springs, but I wanted to know when the system was in equilibrium. I added an onEquilibrium event, similar to the onUpdate event, and thought it might be useful to others.

jonobr1 commented 10 years ago

Sorry for the delay... I've been traveling. This looks great, thanks for adding this. I'd love to see what you've made! :+1:

Jared314 commented 10 years ago

It is nowhere near complete, but I do have a test project that shows the idea.

https://github.com/Jared314/physics-based-page-layout

Live demo: http://jared314.github.io/physics-based-page-layout/

jonobr1 commented 10 years ago

Very cool! Be sure to follow up and let me know when you feel it's ready to share!