Warning, /education/gcompris/external/qml-box2d/examples/shared/ImageBoxBody.qml is written in an unsupported language. File is not indexed.
0001 import QtQuick 2.0 0002 import Box2D 2.0 0003 0004 Image { 0005 id: image 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 signal beginContact(Fixture other) 0035 signal endContact(Fixture other) 0036 0037 Body { 0038 id: boxBody 0039 0040 target: image 0041 0042 Box { 0043 id: box 0044 0045 width: image.width 0046 height: image.height 0047 0048 onBeginContact: image.beginContact(other) 0049 onEndContact: image.endContact(other) 0050 } 0051 } 0052 }