Warning, /education/gcompris/external/qml-box2d/examples/polygons/Trapezoid.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 PhysicsItem {
0006 world: physicsWorld
0007 sleepingAllowed: false
0008 bodyType: Body.Dynamic
0009
0010 fixtures: Polygon {
0011 density: 1
0012 friction: 0.3
0013 restitution: 0.5
0014 vertices: [
0015 Qt.point(-10.5, 0),
0016 Qt.point(0, 100),
0017 Qt.point(110, 100),
0018 Qt.point(100, 0)
0019 ]
0020 }
0021 }