123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354 |
- import QtQuick 2.0
- import Box2D 2.0
- import ".."
- ArtImage {
- id: image
- property alias body: boxBody
- property alias fixture: box
- // Body properties
- property alias world: boxBody.world
- property alias linearDamping: boxBody.linearDamping
- property alias angularDamping: boxBody.angularDamping
- property alias bodyType: boxBody.bodyType
- property alias bullet: boxBody.bullet
- property alias sleepingAllowed: boxBody.sleepingAllowed
- property alias fixedRotation: boxBody.fixedRotation
- property alias active: boxBody.active
- property alias awake: boxBody.awake
- property alias linearVelocity: boxBody.linearVelocity
- property alias angularVelocity: boxBody.angularVelocity
- property alias fixtures: boxBody.fixtures
- property alias gravityScale: boxBody.gravityScale
- // Box properties
- property alias density: box.density
- property alias friction: box.friction
- property alias restitution: box.restitution
- property alias sensor: box.sensor
- property alias categories: box.categories
- property alias collidesWith: box.collidesWith
- property alias groupIndex: box.groupIndex
- signal beginContact(Fixture other)
- signal endContact(Fixture other)
- Body {
- id: boxBody
- target: image
- Box {
- id: box
- width: image.width
- height: image.height
- onBeginContact: image.beginContact(other)
- onEndContact: image.endContact(other)
- }
- }
- }
|