Name | Date | Size | #Lines | LOC | ||
---|---|---|---|---|---|---|
.. | 03-May-2022 | - | ||||
Box2D/ | H | 03-May-2022 | - | 21,351 | 13,706 | |
debian/ | H | 09-Jan-2018 | - | 29 | 17 | |
examples/ | H | 09-Jan-2018 | - | 6,304 | 5,527 | |
.gitignore | H A D | 09-Jan-2018 | 47 | 6 | 5 | |
COPYING | H A D | 09-Jan-2018 | 820 | 18 | 13 | |
README.md | H A D | 09-Jan-2018 | 2.4 KiB | 79 | 46 | |
box2d-static.pri | H A D | 09-Jan-2018 | 385 | 21 | 18 | |
box2d.pro | H A D | 09-Jan-2018 | 816 | 34 | 23 | |
box2d.qbs | H A D | 09-Jan-2018 | 773 | 32 | 24 | |
box2d_lib.pri | H A D | 09-Jan-2018 | 1.5 KiB | 63 | 56 | |
box2dbody.cpp | H A D | 09-Jan-2018 | 12.5 KiB | 507 | 377 | |
box2dbody.h | H A D | 09-Jan-2018 | 7.5 KiB | 259 | 175 | |
box2dcontact.cpp | H A D | 09-Jan-2018 | 2.6 KiB | 122 | 77 | |
box2dcontact.h | H A D | 09-Jan-2018 | 2.3 KiB | 77 | 38 | |
box2ddebugdraw.cpp | H A D | 09-Jan-2018 | 9.7 KiB | 313 | 231 | |
box2ddebugdraw.h | H A D | 09-Jan-2018 | 2.4 KiB | 96 | 53 | |
box2ddistancejoint.cpp | H A D | 09-Jan-2018 | 3.9 KiB | 143 | 92 | |
box2ddistancejoint.h | H A D | 09-Jan-2018 | 3.2 KiB | 117 | 70 | |
box2dfixture.cpp | H A D | 09-Jan-2018 | 10.2 KiB | 446 | 333 | |
box2dfixture.h | H A D | 09-Jan-2018 | 8.1 KiB | 307 | 199 | |
box2dfrictionjoint.cpp | H A D | 09-Jan-2018 | 3.6 KiB | 130 | 83 | |
box2dfrictionjoint.h | H A D | 09-Jan-2018 | 2.9 KiB | 105 | 60 | |
box2dgearjoint.cpp | H A D | 09-Jan-2018 | 3.2 KiB | 131 | 84 | |
box2dgearjoint.h | H A D | 09-Jan-2018 | 2.3 KiB | 93 | 50 | |
box2djoint.cpp | H A D | 09-Jan-2018 | 3.6 KiB | 154 | 102 | |
box2djoint.h | H A D | 09-Jan-2018 | 3.7 KiB | 162 | 102 | |
box2dmotorjoint.cpp | H A D | 09-Jan-2018 | 3.6 KiB | 128 | 82 | |
box2dmotorjoint.h | H A D | 09-Jan-2018 | 3.1 KiB | 114 | 67 | |
box2dmousejoint.cpp | H A D | 09-Jan-2018 | 2.8 KiB | 109 | 68 | |
box2dmousejoint.h | H A D | 09-Jan-2018 | 2.7 KiB | 103 | 58 | |
box2dplugin.cpp | H A D | 09-Jan-2018 | 4.2 KiB | 92 | 58 | |
box2dplugin.h | H A D | 09-Jan-2018 | 1.4 KiB | 48 | 14 | |
box2dprismaticjoint.cpp | H A D | 09-Jan-2018 | 5.8 KiB | 210 | 148 | |
box2dprismaticjoint.h | H A D | 09-Jan-2018 | 5 KiB | 173 | 115 | |
box2dpulleyjoint.cpp | H A D | 09-Jan-2018 | 4.8 KiB | 186 | 125 | |
box2dpulleyjoint.h | H A D | 09-Jan-2018 | 3.9 KiB | 143 | 91 | |
box2draycast.cpp | H A D | 09-Jan-2018 | 1.7 KiB | 55 | 23 | |
box2draycast.h | H A D | 09-Jan-2018 | 2 KiB | 74 | 35 | |
box2drevolutejoint.cpp | H A D | 09-Jan-2018 | 5.4 KiB | 198 | 138 | |
box2drevolutejoint.h | H A D | 09-Jan-2018 | 4.6 KiB | 162 | 106 | |
box2dropejoint.cpp | H A D | 09-Jan-2018 | 3.2 KiB | 115 | 67 | |
box2dropejoint.h | H A D | 09-Jan-2018 | 2.7 KiB | 99 | 53 | |
box2dweldjoint.cpp | H A D | 09-Jan-2018 | 3.6 KiB | 129 | 80 | |
box2dweldjoint.h | H A D | 09-Jan-2018 | 3.1 KiB | 115 | 68 | |
box2dwheeljoint.cpp | H A D | 09-Jan-2018 | 5.1 KiB | 193 | 133 | |
box2dwheeljoint.h | H A D | 09-Jan-2018 | 4.3 KiB | 154 | 99 | |
box2dworld.cpp | H A D | 09-Jan-2018 | 9 KiB | 351 | 265 | |
box2dworld.h | H A D | 09-Jan-2018 | 9.8 KiB | 422 | 269 | |
qmldir | H A D | 09-Jan-2018 | 48 | 4 | 3 |
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