From ee98e06952555f140ffa9f3d18972760028cf87a Mon Sep 17 00:00:00 2001 From: BastiaanOlij Date: Wed, 16 Nov 2016 21:54:51 +1100 Subject: Added gravity vector back into the accelerometer data and flipped Z on the gyro --- platform/iphone/os_iphone.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'platform/iphone/os_iphone.cpp') diff --git a/platform/iphone/os_iphone.cpp b/platform/iphone/os_iphone.cpp index cfd2a844c..7e35bf787 100644 --- a/platform/iphone/os_iphone.cpp +++ b/platform/iphone/os_iphone.cpp @@ -371,8 +371,7 @@ void OSIPhone::update_magnetometer(float p_x, float p_y, float p_z) { }; void OSIPhone::update_gyroscope(float p_x, float p_y, float p_z) { - ///@TODO I've made the Z negative like the original accelerometer code, this probably needs more work - input->set_gyroscope(Vector3(p_x, p_y, -p_z)); + input->set_gyroscope(Vector3(p_x, p_y, p_z)); }; void OSIPhone::delete_main_loop() { -- cgit v1.2.3-70-g09d2