Struct ovr_sys::ovrTrackingState
[−]
[src]
#[repr(C)]pub struct ovrTrackingState { pub _align: [u64; 0], pub HeadPose: ovrPoseStatef, pub StatusFlags: c_uint, pub HandPoses: [ovrPoseStatef; 2], pub HandStatusFlags: [c_uint; 2], pub CalibratedOrigin: ovrPosef, }
Tracking state at a given absolute time (describes predicted HMD pose, etc.).
Returned by ovr_GetTrackingState
.
Fields
_align: [u64; 0]
HeadPose: ovrPoseStatef
Predicted head pose (and derivatives) at the requested absolute time.
StatusFlags: c_uint
HeadPose tracking status described by ovrStatusBits
.
HandPoses: [ovrPoseStatef; 2]
The most recent calculated pose for each hand when hand controller tracking is present.
HandPoses[ovrHand_Left
as usize] refers to the left hand and HandPoses[ovrHand_Right
as usize] to the right hand.
These values can be combined with ovrInputState
for complete hand controller information.
HandStatusFlags: [c_uint; 2]
HandPoses status flags described by ovrStatusBits
.
Only ovrStatus_OrientationTracked
and ovrStatus_PositionTracked
are reported.
CalibratedOrigin: ovrPosef
The pose of the origin captured during calibration.
Like all other poses here, this is expressed in the space set by ovr_RecenterTrackingOrigin
,
or ovr_SpecifyTrackingOrigin
and so will change every time either of those functions are
called. This pose can be used to calculate where the calibrated origin lands in the new
recentered space. If an application never calls ovr_RecenterTrackingOrigin
or
ovr_SpecifyTrackingOrigin
, expect this value to be the identity pose and as such will point
respective origin based on ovrTrackingOrigin
requested when calling ovr_GetTrackingState
.
Trait Implementations
impl Debug for ovrTrackingState
[src]
impl Copy for ovrTrackingState
[src]
impl Clone for ovrTrackingState
[src]
fn clone(&self) -> ovrTrackingState
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more