Пример #1
0
 internal void Write(BinaryWriter writer, float CoordZ, float scale)
 {
     writer.Write(MMDMotion2.GetBytes(BoneName, 15));
     writer.Write((DWORD)FrameNo);
     writer.Write((Single)Location[0] * scale);
     writer.Write((Single)Location[1] * scale);
     writer.Write((Single)Location[2] * CoordZ * scale);
     writer.Write((Single)Quatanion[0] * CoordZ);
     writer.Write((Single)Quatanion[1] * CoordZ);
     writer.Write((Single)Quatanion[2]);
     writer.Write((Single)Quatanion[3]);
     for (int i = 0; i < 4; i++)
     {
         for (int j = 0; j < 4; j++)
         {
             for (int k = 0; k < 4; k++)
             {
                 writer.Write((byte)Interpolation[i][j][k]);
             }
         }
     }
 }
Пример #2
0
 internal void Write(BinaryWriter writer)
 {
     writer.Write(MMDMotion2.GetBytes(FaceName, 15));
     writer.Write((DWORD)FrameNo);
     writer.Write((Single)Rate);
 }