Feather falling

This is my first attempt simulating a single feather falling. 

http://mekanimomedia.s3.amazonaws.com/feather/feather.html

(log in to comment)

Comments

it looks good.
Good job. It's amazing what you can put together in 9 minutes with the right tools. I especially like how you simulate something like that with completely unrealistic physics.
@fahri:
what's the command to export a mekanimo model to pybox2d ?
thanks.

I know how to export it to cpp ( system.createBox2dCpp('pah.h') ), but I don't know  how to do it for pybox2d.
Hi Riq,

There is no export function for pybox2d similar to C++ or Java but you can create a world and then step through it as shown below.

import pyB2D
world = pyB2D.createBox2DWorld()
world.Step(dt, velIterations, posIterations)

I am not sure how you can export this "world" object to someplace else.  Maybe you can write a wrapper and generate code with it?  pyBox2D documentation shows how to iterate through bodies etc.

Fahri





@fahri:
Thanks. I thought that you were using mekanimo only to model the physics, but from the video I think that you are coding your game inside makanimo.

I'll try exporting the bodies by iterating the world.

Thanks.