BoxBody.qml 720 B

123456789101112131415161718192021222324252627282930
  1. import Box2D 2.0
  2. Body {
  3. id: body
  4. property alias fixture: box
  5. property alias density: box.density
  6. property alias friction: box.friction
  7. property alias restitution: box.restitution
  8. property alias sensor: box.sensor
  9. property alias categories: box.categories
  10. property alias collidesWith: box.collidesWith
  11. property alias groupIndex: box.groupIndex
  12. property alias x: box.x
  13. property alias y: box.y
  14. property alias width: box.width
  15. property alias height: box.height
  16. signal beginContact(Fixture other)
  17. signal endContact(Fixture other)
  18. Box {
  19. id: box
  20. onBeginContact: body.beginContact(other)
  21. onEndContact: body.endContact(other)
  22. }
  23. }