Esempio n. 1
0
        public static ovrVector3f GetNodeAngularAcceleration(ovrNode nodeId, ovrStep stepId)
        {
            if (version >= OVRP_1_12_0.version)
            {
                return(OVRP_1_12_0.ovrp_GetNodePoseState(stepId, nodeId).AngularAcceleration);
            }

            return(new ovrVector3f());            //TODO: Convert legacy quat to vec3?
        }
Esempio n. 2
0
        public static ovrVector3f GetNodeAcceleration(ovrNode nodeId, ovrStep stepId)
        {
            if (version >= OVRP_1_12_0.version)
            {
                return(OVRP_1_12_0.ovrp_GetNodePoseState(stepId, nodeId).Acceleration);
            }

            if (version >= OVRP_1_8_0.version && stepId == ovrStep.Physics)
            {
                return(OVRP_1_8_0.ovrp_GetNodeAcceleration2(0, nodeId).Position);
            }

            return(OVRP_0_1_3.ovrp_GetNodeAcceleration(nodeId).Position);
        }
Esempio n. 3
0
        public static ovrPosef GetNodePose(ovrNode nodeId, ovrStep stepId)
        {
            if (version >= OVRP_1_12_0.version)
            {
                return(OVRP_1_12_0.ovrp_GetNodePoseState(stepId, nodeId).Pose);
            }

            if (version >= OVRP_1_8_0.version && stepId == ovrStep.Physics)
            {
                return(OVRP_1_8_0.ovrp_GetNodePose2(0, nodeId));
            }

            return(OVRP_0_1_2.ovrp_GetNodePose(nodeId));
        }
Esempio n. 4
0
 public static extern ovrPosef ovrp_GetNodePose(ovrNode nodeId);
Esempio n. 5
0
 public static bool GetNodePositionTracked(ovrNode nodeId)
 {
     return(OVRP_1_1_0.ovrp_GetNodePositionTracked(nodeId) == ovrBool.True);
 }
Esempio n. 6
0
 public static bool GetNodePresent(ovrNode nodeId)
 {
     return(OVRP_1_1_0.ovrp_GetNodePresent(nodeId) == ovrBool.True);
 }
Esempio n. 7
0
 public static extern ovrPoseStatef ovrp_GetNodePoseState(ovrStep stepId, ovrNode nodeId);
Esempio n. 8
0
 public static extern ovrPosef ovrp_GetNodeVelocity2(int stateId, ovrNode nodeId);
Esempio n. 9
0
 public static extern ovrPosef ovrp_GetNodeAcceleration2(int stateId, ovrNode nodeId);
Esempio n. 10
0
 public static extern ovrPosef ovrp_GetNodePose2(int stateId, ovrNode nodeId);
Esempio n. 11
0
 public static extern ovrBool ovrp_GetNodePositionTracked(ovrNode nodeId);
Esempio n. 12
0
 public static extern ovrBool ovrp_GetNodePresent(ovrNode nodeId);
Esempio n. 13
0
 public static extern ovrPosef ovrp_GetNodeAcceleration(ovrNode nodeId);
Esempio n. 14
0
 public static extern ovrPosef ovrp_GetNodeVelocity(ovrNode nodeId);