Ejemplo n.º 1
0
        public static Vector3 GetRelativeBonePosition(this Skeleton skeleton, string bone)
        {
            Transform value = skeleton.TrackedBones[bone];

            return(RelativeStateHelper.CalculateRelativePosition(skeleton.RootBone, value));
        }
Ejemplo n.º 2
0
 public static Vector3 GetRootTransformRelativePosition(this Skeleton skeleton, Transform relativeTo)
 {
     return(skeleton.RootBone.gameObject.activeInHierarchy == false
         ? Vector3.zero
         : RelativeStateHelper.CalculateRelativePosition(relativeTo, skeleton.RootBone));
 }