Warning, /education/gcompris/external/qml-box2d/examples/distance/Square.qml is written in an unsupported language. File is not indexed.
0001 import QtQuick 2.0 0002 import Box2D 2.0 0003 import "../shared" 0004 0005 Rectangle { 0006 id: square 0007 0008 color: "green" 0009 0010 property Body body: BoxBody { 0011 width: square.width 0012 height: square.height 0013 0014 target: square 0015 world: physicsWorld 0016 0017 fixedRotation: false 0018 sleepingAllowed: false 0019 bodyType: Body.Dynamic 0020 0021 density: 1 0022 friction: 1 0023 restitution: 0.3 0024 } 0025 }