From d83aaeea17fcf7a2bc4d7f4346280149ba222c8a Mon Sep 17 00:00:00 2001 From: Bastiaan Olij Date: Mon, 29 Apr 2024 21:46:28 +1000 Subject: [PATCH] MobileVR: orientation is progressive and needs to be initialised --- modules/mobile_vr/mobile_vr_interface.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/mobile_vr/mobile_vr_interface.cpp b/modules/mobile_vr/mobile_vr_interface.cpp index 94a3f0777ea1..bba56f6468c0 100644 --- a/modules/mobile_vr/mobile_vr_interface.cpp +++ b/modules/mobile_vr/mobile_vr_interface.cpp @@ -126,7 +126,7 @@ void MobileVRInterface::set_position_from_sensors() { // 9dof is a misleading marketing term coming from 3 accelerometer axis + 3 gyro axis + 3 magnetometer axis = 9 axis // but in reality this only offers 3 dof (yaw, pitch, roll) orientation - Basis orientation; + Basis orientation = head_transform.basis; uint64_t ticks = OS::get_singleton()->get_ticks_usec(); uint64_t ticks_elapsed = ticks - last_ticks;