Exemple #1
0
        /// <summary>
        ///    Reads bone information from the file.
        /// </summary>
        protected void ReadAttachmentPoint(BinaryMemoryReader reader)
        {
            // bone name
            string name = ReadString(reader);

            ushort boneHandle = ReadUShort(reader);

            // read and set the position of the bone
            Vector3 position = ReadVector3(reader);

            // read and set the orientation of the bone
            Quaternion q = ReadQuat(reader);

            // create the attachment point
            AttachmentPoint ap = skeleton.CreateAttachmentPoint(name, boneHandle, q, position);
        }