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? }
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); }
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)); }
public static extern ovrPosef ovrp_GetNodePose(ovrNode nodeId);
public static bool GetNodePositionTracked(ovrNode nodeId) { return(OVRP_1_1_0.ovrp_GetNodePositionTracked(nodeId) == ovrBool.True); }
public static bool GetNodePresent(ovrNode nodeId) { return(OVRP_1_1_0.ovrp_GetNodePresent(nodeId) == ovrBool.True); }
public static extern ovrPoseStatef ovrp_GetNodePoseState(ovrStep stepId, ovrNode nodeId);
public static extern ovrPosef ovrp_GetNodeVelocity2(int stateId, ovrNode nodeId);
public static extern ovrPosef ovrp_GetNodeAcceleration2(int stateId, ovrNode nodeId);
public static extern ovrPosef ovrp_GetNodePose2(int stateId, ovrNode nodeId);
public static extern ovrBool ovrp_GetNodePositionTracked(ovrNode nodeId);
public static extern ovrBool ovrp_GetNodePresent(ovrNode nodeId);
public static extern ovrPosef ovrp_GetNodeAcceleration(ovrNode nodeId);
public static extern ovrPosef ovrp_GetNodeVelocity(ovrNode nodeId);