Warning, /education/gcompris/external/qml-box2d/examples/shared/EdgeBody.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: edge
0007 
0008     property alias density: edge.density
0009     property alias friction: edge.friction
0010     property alias restitution: edge.restitution
0011     property alias sensor: edge.sensor
0012     property alias categories: edge.categories
0013     property alias collidesWith: edge.collidesWith
0014     property alias groupIndex: edge.groupIndex
0015 
0016     property alias vertices: edge.vertices
0017 
0018     signal beginContact(Fixture other)
0019     signal endContact(Fixture other)
0020 
0021     Edge {
0022         id: edge
0023 
0024         onBeginContact: body.beginContact(other)
0025         onEndContact: body.endContact(other)
0026     }
0027 }