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