Example #1
0
    public static Posef GetNodeAcceleration(Node nodeId, bool usePhysicsPose)
    {
        if (version >= OVRP_1_8_0.version && usePhysicsPose)
        {
            return(OVRP_1_8_0.ovrp_GetNodeAcceleration2(0, nodeId));
        }

        return(OVRP_0_1_3.ovrp_GetNodeAcceleration(nodeId));
    }
Example #2
0
 public static Posef GetNodeAcceleration(Node nodeId)
 {
     if (version >= OVRP_0_1_3.version)
     {
         return(OVRP_0_1_3.ovrp_GetNodeAcceleration(nodeId));
     }
     else
     {
         return(new Posef());
     }
 }
Example #3
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);
        }
Example #4
0
 public static Posef GetNodeAcceleration(Node nodeId)
 {
     return(OVRP_0_1_3.ovrp_GetNodeAcceleration(nodeId));
 }