Michael Sheldon's Stuff

Michael Sheldon (mike at mikeasoft dot com)

July 15, 2011

Box2D and Box2D-QML for Harmattan
Mike @ 4:44 pm

I’ve just built some Box2D and Box2D-QML packages for Harmattan. The Box2D-QML package is especially interesting, this wraps the Box2D API as QObjects allowing them to be made use of directly from within QML. So you don’t need any extra C++ to handle physics simulation for simple games or similar. Here’s a short video of one of the demos running on an N950:

The source code for the above demo can be seen in the Box2D-QML repository here: Monera Example and thanks to these wrappers is very simple.

Packages for the N9/N950 can be found in my OBS repository, simply download elleo.list into /etc/apt/sources.list.d/ and run apt-get update to make the repository available on your device, or just download the packages you’re interested in directly from http://repo.pub.meego.com/home:/elleo/Harmattan/armel/.

Many thanks to the Box2D and Box2D-QML teams for creating such nice tools, I’d certainly recommend them to anyone interested in 2D game development on the N9/N950 phones.


  1. […] Michael Sheldon’s Stuff Related posts:[LMN] Birmingham UK – MeeGo MeetupJukka Eklund talks about the Nokia N900 MeeGo […]

    Pingback by Box2D and Box2D-QML for Harmattan — July 28, 2011 @ 9:15 pm

  2. hi,
    very nice video

    but can i ask a question?

    how can i fill a polygon with one color?

    i have box2d and qml working nice together

    vertices: []
    color: blue

    but redline under color

    what should i do

    Comment by merve — August 3, 2011 @ 2:08 pm

  3. What’s the relationship to qml-box2d?

    Comment by Martin — August 19, 2011 @ 4:36 am

  4. Martin: It is qml-box2d.

    Comment by Mike — August 20, 2011 @ 3:34 pm

  5. Hi,

    Very nice!

    Is there any place where I can get the debian files for box2d for harmattan?


    Comment by Will — July 26, 2012 @ 8:05 pm

  6. […] Source Michael Sheldon’s Stuff […]

    Pingback by Box2D and Box2D-QML for MeeGo Harmattan - IoT Gadgets — January 5, 2018 @ 10:32 am

RSS feed for comments on this post. TrackBack URL

Leave a comment

Powered by WordPress