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

0001 import QtQuick 2.0
0002 import Box2D 2.0
0003 
0004 Rectangle {
0005     id: rectangle
0006 
0007     property alias body: boxBody
0008     property alias fixture: box
0009 
0010     // Body properties
0011     property alias world: boxBody.world
0012     property alias linearDamping: boxBody.linearDamping
0013     property alias angularDamping: boxBody.angularDamping
0014     property alias bodyType: boxBody.bodyType
0015     property alias bullet: boxBody.bullet
0016     property alias sleepingAllowed: boxBody.sleepingAllowed
0017     property alias fixedRotation: boxBody.fixedRotation
0018     property alias active: boxBody.active
0019     property alias awake: boxBody.awake
0020     property alias linearVelocity: boxBody.linearVelocity
0021     property alias angularVelocity: boxBody.angularVelocity
0022     property alias fixtures: boxBody.fixtures
0023     property alias gravityScale: boxBody.gravityScale
0024 
0025     // Box properties
0026     property alias density: box.density
0027     property alias friction: box.friction
0028     property alias restitution: box.restitution
0029     property alias sensor: box.sensor
0030     property alias categories: box.categories
0031     property alias collidesWith: box.collidesWith
0032     property alias groupIndex: box.groupIndex
0033 
0034     Body {
0035         id: boxBody
0036 
0037         target: rectangle
0038 
0039         Box {
0040             id: box
0041 
0042             width: rectangle.width
0043             height: rectangle.height
0044         }
0045     }
0046 }