Skip to content

Commit

Permalink
Added a funny animation.
Browse files Browse the repository at this point in the history
  • Loading branch information
kaisellgren committed Feb 5, 2012
1 parent 7b65b0a commit 580187f
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Osmium Wars/Osmium Wars/Classes/Entity.cs
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,11 @@ public override void Draw(GameTime gameTime)

// Copy any parent transforms.
Matrix[] transforms = new Matrix[this.model.Bones.Count];

ModelBone bone = this.model.Bones["AF_Helmet_Xmas_D.bmp"];
//Matrix boneTransform = bone.Transform;
bone.Transform *= Matrix.CreateRotationY(this.rotation / 30);

this.model.CopyAbsoluteBoneTransformsTo(transforms);

// Draw the model. A model can have multiple meshes, so loop.
Expand Down

0 comments on commit 580187f

Please sign in to comment.