Exemplo n.º 1
0
        public static void Write(BinaryWriter writer, SoftwareBone softwareBone)
        {
            writer.Write(softwareBone.Name);
            writer.Write((softwareBone.Parent != null) ? softwareBone.Parent.Name : "");

            writer.Write(softwareBone.InheritScale);
            writer.Write(softwareBone.InheritRotation);
            writer.WriteVector(softwareBone.Position);
            writer.WriteMatrix(softwareBone.Rotation);
        }
Exemplo n.º 2
0
 internal void linkObjects(RMX_ArmatureBone bone, List<SoftwareBone> bones)
 {
     if (!string.IsNullOrEmpty(bone.Parent))
     {
         foreach (var parent in bones)
         {
             if (bone.Parent == parent.Name)
             {
                 Parent = parent;
                 break;
             }
         }
         if (Parent == null) Debug.ThrowError("SoftwareObject", "Failed to find Parent: " + bone.Parent);
     }
 }
Exemplo n.º 3
0
 internal void linkObjects(RMX_ArmatureBone bone, List <SoftwareBone> bones)
 {
     if (!string.IsNullOrEmpty(bone.Parent))
     {
         foreach (var parent in bones)
         {
             if (bone.Parent == parent.Name)
             {
                 Parent = parent;
                 break;
             }
         }
         if (Parent == null)
         {
             Debug.ThrowError("SoftwareObject", "Failed to find Parent: " + bone.Parent);
         }
     }
 }
Exemplo n.º 4
0
        public static void Write(BinaryWriter writer, SoftwareBone softwareBone)
        {
            writer.Write(softwareBone.Name);
            writer.Write((softwareBone.Parent != null) ? softwareBone.Parent.Name : "");

            writer.Write(softwareBone.InheritScale);
            writer.Write(softwareBone.InheritRotation);
            writer.WriteVector(softwareBone.Position);
            writer.WriteMatrix(softwareBone.Rotation);
        }