On Mon, 2009-12-21 at 19:49 -0600, Eduardo Cavazos wrote:
> Box2D is a physics engine written in C++ by Erin Catto:
>
> http://www.box2d.org/
>
> Box2D Lite is a simplified version that he posted to his blog once upon
> a time.
>
> I've ported Box2D Lite to Ikarus. Here it is running the pyramid demo:
>
> http://imgur.com/aXAY4
>
> That's a screenshot of the very first successful run. :-)
>
> Of course, I'll be happy to release the code once the performance is
> cranked a bit.
I've checked it in:
http://github.com/dharmatech/box2d-lite
I'm in the middle of debugging a ton of corner areas so you'll have to
excuse all the "printf" style debugging lines. Pretend it's a very messy
construction site. :-)
See the README for setup directions. Then you can try the
'small-pyramid' demo:
$ ikarus --r6rs-script ~/scheme/box2d-lite/demos/small-pyramid.sps
On my system, the "full" pyramid based on the one that comes with Box2D
Lite runs pretty slowly. But the 'small-pyramid' demo has good
performance.
By the way, the original Box2D Lite C++ source code is at:
http://www.gphysics.com/files/Box2D_Lite.zip
That'll come in handy if you want to help me debug the Scheme
version. :-)
Ed