WellDelegate.qml 432 B

123456789101112131415161718192021222324
  1. import QtQuick 2.5
  2. import Box2D 2.0
  3. import Qt.labs.settings 1.0
  4. import ".."
  5. ArtBoxBody {
  6. id: picture
  7. signal beyondThePale(var item)
  8. onYChanged: {
  9. if (y > globalFloor.y) {
  10. beyondThePale(this)
  11. }
  12. }
  13. density: wellSettings.density
  14. friction: wellSettings.friction
  15. restitution: wellSettings.restitution
  16. fixedRotation: wellSettings.fixedRotation
  17. bodyType: Body.Dynamic
  18. }