Box2D and Processing

 

I’m pleased to announce I’ve published a first draft of a tutorial about using Box2D in Processing.

Tutorial: http://www.shiffman.net/teaching/nature/box2d-processing/
Google code repository: http://code.google.com/p/pbox2d/

I’m struggling here to figure out whether I’m (a) creating a Processing Box2D library or (b) simply creating a tutorial and set of examples piggybacking off of JBox2D. For now, I’m doing a little bit of both. The library is just a few helper functions, but the examples require you to dig into actual Box2D code. These examples aren’t nearly as comprehensive as what you’ll find in the JBox2D demos. It’s my goal, however, to make the material accessible and easy to use. Hopefully, with some feedback and more time, I’ll be able to publish a more sophisticated library and thorough suite of example. Who knows, maybe no one will ever need any of my previous Nature of Code tutorials any more!

Next up, I’m planning on creating a few simple examples that use the fantastic and awe-inspiring toxiclibs.

  • ma

    hello
    i am a processing beginner, so this question might seem silly easy but…
    i download your package with examples and with every one of it i get this in the console:
    “Package “pbox2d” does not exist. You might be missing a library”
    with a not that the library should be in a “libraries” directory inside the sketch folder.

    yet creating libraries directory and moving pbox2d.jar there doesn`t help

    what should i do to make the examples work?

    thank you in advance for your help

    maciej

  • http://www.shiffman.net Daniel