Real world catapult prototype using Box2D

This is an early attempt to simulate a real world catapult using Box2D.

Raw and uncommented code, but a lot of useful information about compound objects, revolute joints and motors.

This is what you’ll get:

Click with the mouse to shoot the ball.

And this is the source code:

Download the source code.