Automatic C++ code generator for testbed.

Howdy,

I have added the auto-code generation feature to Mekanimo. After creating your model go to File -> Export -> Box2D Testbed and specify a filepath. You should name the file with *.h extension so that it can easily be added to the testbed.

I am not sure if this is the best way to interface with the testbed. If not please let me know.

Mekanimo automatically partitions the concave polygons.

Your feedback is appreciated.

Fahri

http://www.mekanimo.net
Hi,

A few people asked me about the exporting C++ code from Mekanimo. Due to low interest I removed the menu button for exporting C++ code in version 1.09. This was an experimental feature and supported only limited number of element types. This feature is still accessible from the Python interpreter.

Once you have your model in the canvas, simply type:

>>> system.createBox2DCpp('c://your_directory//test.h')

at the Python interpreter and you should get a message-box indicating that
your file has been created. Then you can include the generated header file
in Box2D testbed. Please note that this was an experimental feature and
very limited number of element types are supported.

Original thread: https://box2d.org/forum/viewtopic.php?t=1919