Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Box2D QML plugin
C++ Other
Pull request Compare This branch is 2 commits ahead, 73 commits behind qml-box2d:master.

Reintroduced qFuzzyCompare for synchronization

Avoiding updates to body position and rotation when the change is very
small seems to reduce the synchronization time significantly when there
is a large amount of awake bodies.
latest commit 89a342af48
@bjorn authored
Failed to load latest commit information.
Box2D
examples
.gitignore
COPYING
README Changed another 'qmlviewer' to 'qmlscene'
box2d-static.pri
box2d.pro
box2dbody.cpp
box2dbody.h
box2dcontact.cpp
box2dcontact.h
box2ddebugdraw.cpp
box2ddebugdraw.h Small changes to Box2DDebugDraw for consistency
box2ddistancejoint.cpp
box2ddistancejoint.h Renamed anchorsAuto to mAnchorsAuto for consistency
box2dfixture.cpp
box2dfixture.h turn hard-coded 'pixelsPerMeter' into Box2DWorld's property
box2dfrictionjoint.cpp
box2dfrictionjoint.h
box2dgearjoint.cpp
box2dgearjoint.h
box2djoint.cpp
box2djoint.h
box2dmotorjoint.cpp
box2dmotorjoint.h Changed position of header guard for consistency
box2dmousejoint.cpp
box2dmousejoint.h
box2dplugin.cpp
box2dplugin.h Changes for Qt 5 release
box2dprismaticjoint.cpp
box2dprismaticjoint.h
box2dpulleyjoint.cpp turn hard-coded 'pixelsPerMeter' into Box2DWorld's property
box2dpulleyjoint.h
box2drevolutejoint.cpp
box2drevolutejoint.h
box2dropejoint.cpp
box2dropejoint.h
box2dweldjoint.cpp
box2dweldjoint.h
box2dwheeljoint.cpp
box2dwheeljoint.h
box2dworld.cpp
box2dworld.h
qmldir Corrected instalation rules for Qt5

README

QML Box2D plugin
----------------

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

 qmlscene 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
"qmlscene" 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.
Something went wrong with that request. Please try again.