• Home
  • History
  • Annotate
Name Date Size #Lines LOC

..03-May-2022-

Box2D/H03-May-2022-21,35113,706

debian/H09-Jan-2018-2917

examples/H09-Jan-2018-6,3045,527

.gitignoreH A D09-Jan-201847 65

COPYINGH A D09-Jan-2018820 1813

README.mdH A D09-Jan-20182.4 KiB7946

box2d-static.priH A D09-Jan-2018385 2118

box2d.proH A D09-Jan-2018816 3423

box2d.qbsH A D09-Jan-2018773 3224

box2d_lib.priH A D09-Jan-20181.5 KiB6356

box2dbody.cppH A D09-Jan-201812.5 KiB507377

box2dbody.hH A D09-Jan-20187.5 KiB259175

box2dcontact.cppH A D09-Jan-20182.6 KiB12277

box2dcontact.hH A D09-Jan-20182.3 KiB7738

box2ddebugdraw.cppH A D09-Jan-20189.7 KiB313231

box2ddebugdraw.hH A D09-Jan-20182.4 KiB9653

box2ddistancejoint.cppH A D09-Jan-20183.9 KiB14392

box2ddistancejoint.hH A D09-Jan-20183.2 KiB11770

box2dfixture.cppH A D09-Jan-201810.2 KiB446333

box2dfixture.hH A D09-Jan-20188.1 KiB307199

box2dfrictionjoint.cppH A D09-Jan-20183.6 KiB13083

box2dfrictionjoint.hH A D09-Jan-20182.9 KiB10560

box2dgearjoint.cppH A D09-Jan-20183.2 KiB13184

box2dgearjoint.hH A D09-Jan-20182.3 KiB9350

box2djoint.cppH A D09-Jan-20183.6 KiB154102

box2djoint.hH A D09-Jan-20183.7 KiB162102

box2dmotorjoint.cppH A D09-Jan-20183.6 KiB12882

box2dmotorjoint.hH A D09-Jan-20183.1 KiB11467

box2dmousejoint.cppH A D09-Jan-20182.8 KiB10968

box2dmousejoint.hH A D09-Jan-20182.7 KiB10358

box2dplugin.cppH A D09-Jan-20184.2 KiB9258

box2dplugin.hH A D09-Jan-20181.4 KiB4814

box2dprismaticjoint.cppH A D09-Jan-20185.8 KiB210148

box2dprismaticjoint.hH A D09-Jan-20185 KiB173115

box2dpulleyjoint.cppH A D09-Jan-20184.8 KiB186125

box2dpulleyjoint.hH A D09-Jan-20183.9 KiB14391

box2draycast.cppH A D09-Jan-20181.7 KiB5523

box2draycast.hH A D09-Jan-20182 KiB7435

box2drevolutejoint.cppH A D09-Jan-20185.4 KiB198138

box2drevolutejoint.hH A D09-Jan-20184.6 KiB162106

box2dropejoint.cppH A D09-Jan-20183.2 KiB11567

box2dropejoint.hH A D09-Jan-20182.7 KiB9953

box2dweldjoint.cppH A D09-Jan-20183.6 KiB12980

box2dweldjoint.hH A D09-Jan-20183.1 KiB11568

box2dwheeljoint.cppH A D09-Jan-20185.1 KiB193133

box2dwheeljoint.hH A D09-Jan-20184.3 KiB15499

box2dworld.cppH A D09-Jan-20189 KiB351265

box2dworld.hH A D09-Jan-20189.8 KiB422269

qmldirH A D09-Jan-201848 43

README.md

1## QML Box2D plugin
2
3The goal of the qml-box2d plugin is to expose the functionality of Box2D (C++) as a QML plugin in order
4to make it easier to write physics based software in QML.
5
6This plugin is meant to be installed to your Qt/imports directory, or shipped
7in a directory of which the parent is added as import path.
8
9### INSTALLING
10
11
12 qmake
13 make
14 make install  (goes to Qt's import path, run with sudo if necessary)
15
16 The 'make install' step will copy the qml-box2d Box2D plugin into your Qt installation.
17 Example:
18 If you have a Qt installation of:
19 /Users/user/Qt5.10/5.10.0
20 the plugin will be in:
21 /Users/user/Qt5.10/5.10.0/clang_64/qml/Box2D.2.0
22 This example is a Mac path, on other platforms you will see different paths and compilers.
23
24
25### RUNNING THE EXAMPLES
26
27 You can run the examples launcher from a Terminal/Cmd prompt with:
28 qmlscene examples/ui.qml
29
30 (You need to be in the root folder of qml-box2d.)
31
32
33### DEPLOYMENT
34
35The standart plugin (dynamically linked) runs well on Mac, Window and Linux.
36The qml-box2d plugin can be linked statically to run on both iOS and Android.
37
38
39### USING QT CREATOR
40
41For running you can use a "Custom Executable" configuration set to run
42"qmlscene" with the right parameters.
43
44When you have write permissions to Qt's import path, it can be convenient to
45add a deployment step to your run settings:
46
47 * Go to Projects -> box2d -> Run Settings
48 * Choose Add Deploy Step -> Make
49 * Enter "install" under "Make arguments"
50
51This will make sure that before running, the version of the plugin is updated
52in Qt's import path.
53
54
55### EXAMPLE SCREENSHOTS:
56(These screenshots have been done on an iPad Air)
57
58<img src="./examples/screenshots/IMG_0645.PNG" width="800" height="600">
59
60<img src="./examples/screenshots/IMG_0647.PNG" width="800" height="600">
61
62<img src="./examples/screenshots/IMG_0648.PNG" width="800" height="600">
63
64<img src="./examples/screenshots/IMG_0653.PNG" width="800" height="600">
65
66<img src="./examples/screenshots/IMG_0656.PNG" width="800" height="600">
67
68<img src="./examples/screenshots/IMG_0657.PNG" width="800" height="600">
69
70<img src="./examples/screenshots/IMG_0658.PNG" width="800" height="600">
71
72<img src="./examples/screenshots/IMG_0661.PNG" width="800" height="600">
73
74<img src="./examples/screenshots/IMG_0666.PNG" width="800" height="600">
75
76<img src="./examples/screenshots/IMG_0669.PNG" width="800" height="600">
77
78<img src="./examples/screenshots/IMG_0675.PNG" width="800" height="600">
79