Skip to content

Commit

Permalink
Merge pull request #91305 from BastiaanOlij/fix_mobile_vr_gyro
Browse files Browse the repository at this point in the history
MobileVR: Orientation is progressive and needs to be initialized
  • Loading branch information
akien-mga committed Apr 29, 2024
2 parents beb798d + d83aaee commit f03301c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/mobile_vr/mobile_vr_interface.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit f03301c

Please sign in to comment.