Updated examples to work with 1.1
[qml-box2d:qml-box2d-folibis.git] / examples / prismatic / Square.qml
1 import QtQuick 2.0
2 import Box2D 1.1
3 Body {
4     fixedRotation: false
5     sleepingAllowed: false
6         bodyType: Body.Dynamic
7     fixtures: Box {
8         anchors.fill: parent
9         density: 10;
10         friction: 1;
11         restitution: 0.3;
12     }
13
14     Rectangle {
15         id: itemShape
16         color: "green"
17         anchors.fill: parent
18         radius: 6
19     }
20 }