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

0001 import Box2D 2.0
0002 
0003 Body {
0004     id: body
0005 
0006     property alias fixture: polygon
0007 
0008     property alias density: polygon.density
0009     property alias friction: polygon.friction
0010     property alias restitution: polygon.restitution
0011     property alias sensor: polygon.sensor
0012     property alias categories: polygon.categories
0013     property alias collidesWith: polygon.collidesWith
0014     property alias groupIndex: polygon.groupIndex
0015 
0016     property alias vertices: polygon.vertices
0017 
0018     signal beginContact(Fixture other)
0019     signal endContact(Fixture other)
0020 
0021     Polygon {
0022         id: polygon
0023 
0024         onBeginContact: body.beginContact(other)
0025         onEndContact: body.endContact(other)
0026     }
0027 }