
ofxRuiPhysics2d example
7 months ago
A simple 2d Verlet physics addon for OpenFrameworks.
it includes particles, constraints and collisions and is based on this article: teknikus.dk/tj/gdc2001.htm
It was created for the Parque installation where it is heavily used (vimeo.com/4789754)
it can be downloaded here: ruicode.googlecode.com , includes the example in this video.
it includes particles, constraints and collisions and is based on this article: teknikus.dk/tj/gdc2001.htm
It was created for the Parque installation where it is heavily used (vimeo.com/4789754)
it can be downloaded here: ruicode.googlecode.com , includes the example in this video.
-
Vimeo: About / Blog / Developers / Jobs / Community Guidelines / Community Forums / Help Center / Site Map / Merchandise
/ Get Vimeo

Previous Week
no, i dont have any optimizations, its pretty straight forward.
the article where this is all based from has an approximation of the square root which seems really good but i never got to make it work, i dont know why but i got weird results...
i've tried other sqrt approximations and i got the exact same results, it was a slower. i think it because modern processors already come optimized for square roots.
im working a lot on improving this, i'm adding polygon to polygon collision and i really want to implement some sort of broad phase algorithm to speed things up.
i've also downloaded some articles explaining the prune and sort algorithm, if its not too hardcore to implement i might go that way, otherwise i'll use Zach's algorithm :)
boa pa! ;)
this is a little different than Box2D and it suits just fine what i needed it for: animating particles with forces and constraints.
At the time i though Box2D would be overkill and im also really interested in generative animation so it was also an excuse for me to learn a lot more about the subject.
:)