diff options
| author | BastiaanOlij | 2016-11-16 21:54:51 +1100 |
|---|---|---|
| committer | BastiaanOlij | 2017-01-12 16:34:42 +1100 |
| commit | ee98e06952555f140ffa9f3d18972760028cf87a (patch) | |
| tree | d04a80fdb1f508a4fbb3a8446cd2d56ea2099dcb /platform/iphone/os_iphone.cpp | |
| parent | 51c60f7a49fad577f1c99ef0cf276933913a8b50 (diff) | |
| download | godot-ee98e06952555f140ffa9f3d18972760028cf87a.tar.gz godot-ee98e06952555f140ffa9f3d18972760028cf87a.tar.zst godot-ee98e06952555f140ffa9f3d18972760028cf87a.zip | |
Added gravity vector back into the accelerometer data and flipped Z on the gyro
Diffstat (limited to '')
| -rw-r--r-- | platform/iphone/os_iphone.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
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() { |
