Package org.lwjgl.ovr

Class OVRTrackingState

  • All Implemented Interfaces:
    java.lang.AutoCloseable, NativeResource, Pointer


    public class OVRTrackingState
    extends Struct
    Tracking state at a given absolute time (describes predicted HMD pose etc). Returned by OVR.ovr_GetTrackingState(long, double, boolean, org.lwjgl.ovr.OVRTrackingState).

    Member documentation

    • HeadPose – Predicted head pose (and derivatives) at the requested absolute time. The look-ahead interval is equal to (HeadPose.TimeInSeconds - RawSensorData.TimeInSeconds).
    • StatusFlagsHeadPose tracking status described by ovrStatusBits.
    • HandPoses – The most recent calculated pose for each hand when hand controller tracking is present. HandPoses[ovrHand_Left] refers to the left hand and HandPoses[ovrHand_Right] to the right hand. These values can be combined with ovrInputState for complete hand controller information.
    • HandStatusFlagsHandPoses status flags described by ovrStatusBits. Only OVR.ovrStatus_OrientationTracked and OVR.ovrStatus_PositionTracked are reported.
    • CalibratedOrigin – the pose of the origin captured during calibration.

      Like all other poses here, this is expressed in the space set by RecenterTrackingOrigin, and so will change every time that is called. This pose can be used to calculate where the calibrated origin lands in the new recentered space. If an application never calls RecenterTrackingOrigin, expect this value to be the identity pose and as such will point respective origin based on ovrTrackingOrigin requested when calling GetTrackingState.

    Layout

    struct ovrTrackingState {
        ovrPoseStatef HeadPose;
        unsigned int StatusFlags;
        ovrPoseStatef[2] HandPoses;
        unsigned int[2] HandStatusFlags;
        ovrPosef CalibratedOrigin;
    }