My expanded QML Box2D bindings for Qt 4
C++ Objective-C Other
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
Box2D
examples
.gitignore
COPYING
README
box2d-static.pri
box2d.pro
box2dbody.cpp
box2dbody.h
box2ddebugdraw.cpp
box2ddebugdraw.h
box2ddestructionlistener.cpp
box2ddestructionlistener.h
box2ddistancejoint.cpp
box2ddistancejoint.h
box2dfixture.cpp
box2dfixture.h
box2dfrictionjoint.cpp
box2dfrictionjoint.h
box2djoint.cpp
box2djoint.h
box2dmousejoint.cpp
box2dmousejoint.h
box2dplugin.cpp
box2dplugin.h
box2dprismaticjoint.cpp
box2dprismaticjoint.h
box2dpulleyjoint.cpp
box2dpulleyjoint.h
box2drevolutejoint.cpp
box2drevolutejoint.h
box2dropejoint.cpp
box2dropejoint.h
box2dweldjoint.cpp
box2dweldjoint.h
box2dwheeljoint.cpp
box2dwheeljoint.h
box2dworld.cpp
box2dworld.h
qmldir

README

QML Box2D plugin
----------------
This is fork of the Box2D-QML bindings (from https://gitorious.org/qml-box2d), providing updated Box2D version (2.2.1) and more features.

Features include:

 Box2D upgraded to 2.2.1
 Joint release/grab
 WeldJoint added
 WheelJoint added
 FrictionJoint added
 Basic Edge shape support added 
 Missing properties and methods added (gravityScale, getMass(), getInertia(), angularVelocity, etc)
 Body fixture iteration added
 MouseJoint added

This version is maintained by Kaj-Michael Lang <milang@tal.org>
http://maemo.tal.org/index.php/maemo:box2d_qml

Original README below:
-----------------------------------------------------------------------------

This plugin is meant to be installed to your Qt/imports directory, or shipped
in a directory of which the parent is added as import path.

The goal is to expose the functionality of Box2D as QML components, in order
to make it easy to write physics based games in QML.


INSTALLING

 qmake
 make
 make install  (goes to Qt's import path, run with sudo if necessary)


RUNNING THE EXAMPLE

 qmlviewer examples/boxes/boxes.qml


DEPLOYMENT

Support for deployment to mobile devices like the N900 and N8 is being worked
on.


USING QT CREATOR

For running you can use a "Custom Executable" configuration set to run
"qmlviewer" with the right parameters.

When you have write permissions to Qt's import path, it can be convenient to
add a deployment step to your run settings:

 * Go to Projects -> box2d -> Run Settings
 * Choose Add Deploy Step -> Make
 * Enter "install" under "Make arguments"

This will make sure that before running, the version of the plugin is updated
in Qt's import path.