24
Mar 10

Box2D World Construction Kit

I haven’t had a look at the WCK project for quite a while so I thought I’d better check it out again today. I can’t believe how far it’s come on since I first came across it!

The World Construction Kit comprises a load of helper classes for working with and extending Box2D and some jsfl scripts for defining complex polygons. There’s also a copy of the C++ version of Box2D that has been compiled with Alchemy so it can be used with Actionscript. This should be significantly faster than the native Actionscript version which is a bonus.

There are far too many goodies to list them all here but one of the stand-out features to me is the inclusion of elliptical objects and elliptical segments. The maths behind the collision detection of ellipses is pretty hairy stuff so it’s really impressive to see this running in Flash.

Here’s the demo that comes with the source. You can download the source code and demo files from GitHub.

WCK Demo

Click on the image to play with the WCK Demo

I can’t wait to have a play around with this. Hopefully it will integrate nicely with Boris the Brave’s Box2DWith library which has an invaluable xml parser for constructing Box2D simulations.

I’m so glad that there are people way cleverer than me working hard to make my life easier. Hats of to you, Jesses and BoristheBrave!

Edit: How could I forget to mention Erin Catto, the originator of Box2D? Erin, I salute you sir!


Two Responses to “Box2D World Construction Kit”

  1. mike Says:

    Hi there,

    can I ask where you sourced this demo swf?
    The latest downloaded files in GitHub and on the WCKit website are different to the one you have, and your one has got a lot better demos on it! (esp simple pinball)

    cheers

    mike

  2. Alistair Says:

    It was the most recent demo back in March 2010. You can find it the project’s history: https://github.com/jesses/wck/blob/5edbcf23c1f7e978c4f353957783a7a0eb9a463c/demo/demo.swf (click on the “raw” link to download the swf)

Leave a Reply

Copyright © 2012 The Daily Flash
Proudly powered by WordPress, Free WordPress Themes, and Linux Hosting