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