Explorar o código

Fix overlapping box2d artifacts

Change-Id: I06a9fc228a045f18b6d706abbbd50a6c3a1bcec9
Donald Carr %!s(int64=8) %!d(string=hai) anos
pai
achega
e31771758b
Modificáronse 2 ficheiros con 2 adicións e 2 borrados
  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