Warning, /education/gcompris/external/qml-box2d/examples/raycast/Wall.qml is written in an unsupported language. File is not indexed.

0001 import QtQuick 2.2
0002 import Box2D 2.0
0003 import "../shared"
0004 
0005 PhysicsItem {
0006     id: wall
0007 
0008     signal beginContact(Fixture other)
0009 
0010     fixtures: Box {
0011         width: wall.width
0012         height: wall.height
0013         friction: 1
0014         density: 1
0015         onBeginContact: wall.beginContact(other)
0016     }
0017 
0018     Image {
0019         source: "images/wall.jpg"
0020         fillMode: Image.Tile
0021         anchors.fill: parent
0022     }
0023 }