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();
|
||||
onDiagonalFOVChanged: updateFOV();
|
||||
|
||||
FrameAnimation {
|
||||
running: true
|
||||
onTriggered: {
|
||||
onImuRotationsChanged: {
|
||||
if (root.imuRotations && root.imuRotations.length > 0) {
|
||||
updateCamera(applyLookAhead(
|
||||
root.imuRotations[0],
|
||||
|
|
@ -80,5 +77,4 @@ Item {
|
|||
));
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue