//得到镜像 转 正常 的骨架信息 世界坐标 public static Vector3 GetWorldPos(OrbbecUser user, SkeletonType skeletonType) { if (IsUserActive(user)) { SkeletonType skeletonType2 = OrbbecUtils.GetFlipSkeletonType(skeletonType); Vector3 vec = user.BoneWorldPos[jointToIntDict[skeletonType2]]; return(vec); } return(Vector3.zero); }
//得到镜像 转 正常 的骨架的 屏幕百分比数据 public static Vector3 GetScreenPercentPos(OrbbecUser user, SkeletonType skeletonType) { if (IsUserActive(user)) { SkeletonType skeletonType2 = OrbbecUtils.GetFlipSkeletonType(skeletonType); Vector3 vec = user.BoneScreenPos[jointToIntDict[skeletonType2]]; vec = new Vector3(vec.x / depthSize.x, (depthSize.y - vec.y) / depthSize.y, 1f); return(vec); } return(Vector3.zero); }