Function gvr_sys::gvr_recenter_tracking [] [src]

pub unsafe extern "C" fn gvr_recenter_tracking(gvr: *mut gvr_context)

Recenters the head orientation (resets the yaw to zero, leaving pitch and roll unmodified).

Only to be used by Cardboard apps. Daydream apps must not call this. On the Daydream platform, recentering is handled automatically and should never be triggered programmatically by applications. Hybrid apps that support both Cardboard and Daydream must only call this function when in Cardboard mode (that is, when the phone is paired with a Cardboard viewer), never in Daydream mode.

@param gvr Pointer to the gvr instance for which tracking will be recentered.