Quellcode durchsuchen

Freefall concept is redundant

Remove friction in attempt to remove insane behavior

Change-Id: I1dec88f1365415ab47c352d14c14c84e8962920b
Donald Carr vor 9 Jahren
Ursprung
Commit
99922f0501
2 geänderte Dateien mit 3 neuen und 6 gelöschten Zeilen
  1. 3 5
      qml/ArtDelegate.qml
  2. 0 1
      qml/Gravity.qml

+ 3 - 5
qml/ArtDelegate.qml

@@ -5,12 +5,10 @@ import Qt.labs.settings 1.0
 ImageBoxBody {
     id: picture
 
-    property bool freefall: false
+    onYChanged: y > floor.y && picture.destroy()
 
-    onYChanged: freefall && ((y <= floor.y) || picture.destroy())
-
-    density: 0.01
-    friction: 1.0
+    density: 1.0
+    friction: 0.0
     fixedRotation: parent.fixedRotation
     world: parent.physicsWorld
     bodyType: Body.Dynamic

+ 0 - 1
qml/Gravity.qml

@@ -115,7 +115,6 @@ Item {
                     if (pictureArray.length > 0) {
                         var image = pictureArray.shift()
                         image.world = bullshitWorld
-                        image.freefall = true
                         d.itemCount--
                         columnHeight -= (image.height + d.itemTravel)
                     }