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
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.
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
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.
riq on 2009/09/01 20:05:
it looks good.