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