OOGL.Animation.Bone.Bone C# (CSharp) Method

Bone() public method

public Bone ( string name, Bone parent, Matrix4 localRotationMatrix, Matrix4 localTranslationMatrix, KeyFrame keyFrames ) : System
name string
parent Bone
localRotationMatrix Matrix4
localTranslationMatrix Matrix4
keyFrames KeyFrame
return System
		public Bone(string name, Bone parent, Matrix4 localRotationMatrix, Matrix4 localTranslationMatrix, KeyFrame[] keyFrames)
		{
			this.name = name;
			this.parent = parent;
			
			this.localRotationMatrix = localRotationMatrix;
			this.localTranslationMatrix = localTranslationMatrix;
			this.localTransformationMatrix = localRotationMatrix * localTranslationMatrix;

			this.globalTransformationMatrix = this.GetGlobalTransformationMatrix();
			
			this.keyFrames = keyFrames;			
		}