Skip to content

Commit d83aaee

Browse files
committed
MobileVR: orientation is progressive and needs to be initialised
1 parent 6118592 commit d83aaee

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/mobile_vr/mobile_vr_interface.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ void MobileVRInterface::set_position_from_sensors() {
126126
// 9dof is a misleading marketing term coming from 3 accelerometer axis + 3 gyro axis + 3 magnetometer axis = 9 axis
127127
// but in reality this only offers 3 dof (yaw, pitch, roll) orientation
128128

129-
Basis orientation;
129+
Basis orientation = head_transform.basis;
130130

131131
uint64_t ticks = OS::get_singleton()->get_ticks_usec();
132132
uint64_t ticks_elapsed = ticks - last_ticks;

0 commit comments

Comments
 (0)