Sfoglia il codice sorgente

Fix overlapping box2d artifacts

Change-Id: I06a9fc228a045f18b6d706abbbd50a6c3a1bcec9
Donald Carr 8 anni fa
parent
commit
e31771758b
2 ha cambiato i file con 2 aggiunte e 2 eliminazioni
  1. 1 1
      qml/common/ArtImage.qml
  2. 1 1
      qml/physics/Physics.qml

+ 1 - 1
qml/common/ArtImage.qml

@@ -7,7 +7,7 @@ Rectangle {
 
     color: "black"
 
-    height: width/imageModel.data(modelIndex, PictureModel.RatioRole)
+    height: Math.ceil(width/imageModel.data(modelIndex, PictureModel.RatioRole))
     width: parent.width
 
     Image {

+ 1 - 1
qml/physics/Physics.qml

@@ -21,7 +21,7 @@ View {
 
         property int feedRate: 100
         // 0 is abutting
-        property int verticalOffset: 1
+        property int verticalOffset: 5
         property real pace: 1
         property bool globalWorld: false
         property bool fixedRotation: true