forked from qml-box2d/qml-box2d
-
Notifications
You must be signed in to change notification settings - Fork 0
/
README
42 lines (25 loc) · 1 KB
/
README
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
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.