Axiom.Serialization.OgreSkeletonSerializer.ReadBone C# (CSharp) Метод

ReadBone() защищенный Метод

Reads bone information from the file.
protected ReadBone ( BinaryReader reader ) : void
reader BinaryReader
Результат void
		protected void ReadBone( BinaryReader reader )
		{
			// bone name
			string name = ReadString( reader );

			ushort handle = ReadUShort( reader );

			// create a new bone
			Bone bone = skeleton.CreateBone( name, handle );

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

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