I’ve been looking at Box2D a lot recently, mostly because Torque 2D (Torque Game Builder’s replacement) is going to be using it. It’s a damn good, and powerful, two-dimensional physics engine -- it’s what powered Crayon Physics, and several similar physics-oriented games. Box2D is a pretty beautiful thing, from what I’ve looked at, and it’s been ported to a lot of systems. Recently, I found a Torque Game Builder integration for it, and figured I’d look into it. Currently, it’s integrated into the Torque Game Builder editor, and still allows for the use of the standard TGB physics (you cannot have both Box2D and TGB physics on the same object, however). The system comes in the form of a class that needs to be set on the Scene itself, and behaviors that you add to objects. The system uses the object’s convex collision polygon, as well.

Video

Screenshots of the Pyramid Test
Stacked Pyramid
Tumbling Pyramid

TGB/Box2D Integration Links
Torque Game Builder 1.7.4
Box2D implementation