Skip to content
Snippets Groups Projects
Commit a6f45bef authored by lukasWoyke's avatar lukasWoyke
Browse files

Merge branch 'hot-fix-gyroscope' into code-cleanup-lukas-fix

parents 09a20a2e 6b7d81c6
No related branches found
No related tags found
2 merge requests!62Fix master,!60Code cleanup lukas fix
......@@ -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
......@@ -121,7 +120,7 @@ class GameGyroscopeController {
// Adjust movement when user olds device in LandscapeRight orientation.
if newAcc.x > 0{
dx *= (-1)
dy *= (-1)
}
// Adjust this value, to adjust the speed of physical character in the gamescene.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment