Function gvr_sys::gvr_reset_tracking [] [src]

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

@deprecated Calls to this method can be safely replaced by calls to gvr_recenter_tracking. This accomplishes the same effects but avoids the undesirable side-effects of a full reset (temporary loss of tracking quality).

Resets head tracking.

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 reseted.