I threw in Box2D into my OGRE-based framework and created a simple box stacking game:
http://casuallyhardcore.com/blog/?p=92
The complete source is available at (via CVS - don't bother the source zips) - The ENTIRE project is zlib/lipng license:
http://sourceforge.net/projects/musicala
The source is in a massive stat of flux because I'm trying to re-insert all the code I did for a Guitar Hero clone back into the framework. I mainly use the framework for prototyping and as a teaching tool.
Some notes:
1) There is a Box2D / Lua (tolua++) binding in the project. People are free to rip it out and use it in their projects. The .pkg files are in the 3rdparty/tolua folder. A sample Lua file that builds a simple Box2D world with some random rigid bodies is in the media\lua directory. The main game state that processes the Lua / Box2D stuff is Lua2DState.
2) I also threw in Chipmunk (another physics engine based on an early version of Box2D) into the framework. It works, so feel free to compare the two physics libraries. The Lua binding has not been testing.
3) You will need FMOD + DirectX SDK (if on Windows because of OIS) + OGRE 1.4.x. FMOD can be stripped out easily and is free only for non-commercial projects. OGRE is LGPL with an option for a commercial license. Everything else is zlib/libpng.
4) Everything has only been tested on Windows. In theory, everything should work on other platforms.
P.S There is a bug in b2Shape.cpp (m_proxyId is not set) which is fixed in my distribution.
m_proxyId = m_body->m_world->m_broadPhase->CreateProxy(aabb, this);
http://casuallyhardcore.com/blog/?p=92
The complete source is available at (via CVS - don't bother the source zips) - The ENTIRE project is zlib/lipng license:
http://sourceforge.net/projects/musicala
The source is in a massive stat of flux because I'm trying to re-insert all the code I did for a Guitar Hero clone back into the framework. I mainly use the framework for prototyping and as a teaching tool.
Some notes:
1) There is a Box2D / Lua (tolua++) binding in the project. People are free to rip it out and use it in their projects. The .pkg files are in the 3rdparty/tolua folder. A sample Lua file that builds a simple Box2D world with some random rigid bodies is in the media\lua directory. The main game state that processes the Lua / Box2D stuff is Lua2DState.
2) I also threw in Chipmunk (another physics engine based on an early version of Box2D) into the framework. It works, so feel free to compare the two physics libraries. The Lua binding has not been testing.
3) You will need FMOD + DirectX SDK (if on Windows because of OIS) + OGRE 1.4.x. FMOD can be stripped out easily and is free only for non-commercial projects. OGRE is LGPL with an option for a commercial license. Everything else is zlib/libpng.
4) Everything has only been tested on Windows. In theory, everything should work on other platforms.
P.S There is a bug in b2Shape.cpp (m_proxyId is not set) which is fixed in my distribution.
m_proxyId = m_body->m_world->m_broadPhase->CreateProxy(aabb, this);