GodotVR / godot_oculus_mobile

Godot Oculus mobile drivers (Oculus Go / Oculus Quest)
MIT License
169 stars 34 forks source link

Head transformation may be invalid #127

Closed mgschwan closed 3 years ago

mgschwan commented 3 years ago

When the ARVRInterface is initialized the Oculus SDK may provide invalid position and orientation. The SDK signals this with the flags VRAPI_TRACKING_STATUS_ORIENTATION_VALID and VRAPI_TRACKING_STATUS_POSITION_VALID

Those are not checked by the plugin and invalid data is sent to the engine. This causes release builds too crash.

Here is a patch to prevent it.

invalid_head_tracker_position_fix.txt