private static bool ExtractHandTrackerData(WVR_HandTrackingData_t handTrackerData, ref WVR_Pose_t[] handJointsPoseLeft, ref WVR_Pose_t[] handJointsPoseRight) { if (!ExtractHandJointData(handTrackerData.left, ref handJointsPoseLeft)) { return(false); } if (!ExtractHandJointData(handTrackerData.right, ref handJointsPoseRight)) { return(false); } return(true); }
private static void InitializeHandTrackerData( ref WVR_HandTrackingData_t handTrackerData, ref WVR_HandJointData_t handJointDataLeft, ref WVR_HandJointData_t handJointDataRight, ref WVR_Pose_t[] handJointsPoseLeft, ref WVR_Pose_t[] handJointsPoseRight, uint count) { handTrackerData.timestamp = 0; InitializeHandJointData(ref handJointDataLeft, ref handJointsPoseLeft, count); handTrackerData.left = handJointDataLeft; InitializeHandJointData(ref handJointDataRight, ref handJointsPoseRight, count); handTrackerData.right = handJointDataRight; }