Commit f6166d4b authored by dogmaphobic's avatar dogmaphobic

Fixed angular scale issue.

parent 1fe3db00
...@@ -35,6 +35,9 @@ Item { ...@@ -35,6 +35,9 @@ Item {
property real pitchAngle: 0 property real pitchAngle: 0
clip: true clip: true
anchors.fill: parent anchors.fill: parent
property real angularScale: pitchAngle * root.height / 45
Item { Item {
id: artificialHorizon id: artificialHorizon
width: root.width * 4 width: root.width * 4
...@@ -67,7 +70,7 @@ Item { ...@@ -67,7 +70,7 @@ Item {
} }
transform: [ transform: [
Translate { Translate {
y: pitchAngle * 4 y: angularScale
}, },
Rotation { Rotation {
origin.x: artificialHorizon.width / 2 origin.x: artificialHorizon.width / 2
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment