Merge pull request #91305 from BastiaanOlij/fix_mobile_vr_gyro
MobileVR: Orientation is progressive and needs to be initialized
This commit is contained in:
commit
f03301ca1a
1 changed files with 1 additions and 1 deletions
|
@ -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
|
// 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
|
// 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 = OS::get_singleton()->get_ticks_usec();
|
||||||
uint64_t ticks_elapsed = ticks - last_ticks;
|
uint64_t ticks_elapsed = ticks - last_ticks;
|
||||||
|
|
Loading…
Reference in a new issue