diff --git a/Better Together/Better Together/Controls/GameGyroscopeController.swift b/Better Together/Better Together/Controls/GameGyroscopeController.swift index ed5371519bf5b91f62248b23db8c98d1e59caa6a..59311e20a32ac996ba5256eb936c75aec972d67b 100644 --- a/Better Together/Better Together/Controls/GameGyroscopeController.swift +++ b/Better Together/Better Together/Controls/GameGyroscopeController.swift @@ -105,7 +105,7 @@ class GameGyroscopeController { /// Caclulates the vector for controlling the character, by using the input private func calculateAccVector(newAcc: SIMD3<Double>) -> CGVector { - checkReorientation() + // checkReorientation() // Sets the initial position, with the first reading attempt. if resetOrientationActive { initialZ = newAcc.z @@ -119,7 +119,7 @@ class GameGyroscopeController { var dy = newAcc.x - initialX // Adjust movement when user olds device in LandscapeRight orientation. - if newAcc.x > 0 { + if UIDevice.current.orientation == .landscapeLeft { dx *= (-1) }