1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-10 13:00:37 +00:00

MobileVR: orientation is progressive and needs to be initialised

This commit is contained in:
Bastiaan Olij
2024-04-29 21:46:28 +10:00
parent 6118592c6d
commit d83aaeea17

View File

@@ -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;