Move away from FrameAnimation, update camera orientation as soon as new IMU data is received
This commit is contained in:
parent
78a6487a5c
commit
2b85ba5e3a
|
|
@ -67,10 +67,7 @@ Item {
|
||||||
|
|
||||||
onDisplayResolutionChanged: updateFOV();
|
onDisplayResolutionChanged: updateFOV();
|
||||||
onDiagonalFOVChanged: updateFOV();
|
onDiagonalFOVChanged: updateFOV();
|
||||||
|
onImuRotationsChanged: {
|
||||||
FrameAnimation {
|
|
||||||
running: true
|
|
||||||
onTriggered: {
|
|
||||||
if (root.imuRotations && root.imuRotations.length > 0) {
|
if (root.imuRotations && root.imuRotations.length > 0) {
|
||||||
updateCamera(applyLookAhead(
|
updateCamera(applyLookAhead(
|
||||||
root.imuRotations[0],
|
root.imuRotations[0],
|
||||||
|
|
@ -81,4 +78,3 @@ Item {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue