From ee16d196784cd94bc8a110ccbfd5bc51550a1544 Mon Sep 17 00:00:00 2001 From: UnknownShadow200 Date: Sat, 19 Sep 2015 18:41:01 +1000 Subject: [PATCH] Fix rotation of other models. (Thanks Goodlyay) --- ClassicalSharp/Model/SkeletonModel.cs | 4 ++-- ClassicalSharp/Model/ZombieModel.cs | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/ClassicalSharp/Model/SkeletonModel.cs b/ClassicalSharp/Model/SkeletonModel.cs index 36d6d4c65..d5a406b9c 100644 --- a/ClassicalSharp/Model/SkeletonModel.cs +++ b/ClassicalSharp/Model/SkeletonModel.cs @@ -65,8 +65,8 @@ namespace ClassicalSharp.Model { DrawPart( Torso ); DrawRotate( 0, 12/16f, 0, p.leftLegXRot, 0, 0, LeftLeg ); DrawRotate( 0, 12/16f, 0, p.rightLegXRot, 0, 0, RightLeg ); - DrawRotate( 0, 22/16f, 0, (float)Math.PI / 2, 0, p.leftArmZRot, LeftArm ); - DrawRotate( 0, 22/16f, 0, (float)Math.PI / 2, 0, p.rightArmZRot, RightArm ); + DrawRotate( -5/16f, 23/16f, 0, (float)Math.PI / 2, 0, p.leftArmZRot, LeftArm ); + DrawRotate( 5/16f, 23/16f, 0, (float)Math.PI / 2, 0, p.rightArmZRot, RightArm ); } ModelPart Head, Torso, LeftLeg, RightLeg, LeftArm, RightArm; diff --git a/ClassicalSharp/Model/ZombieModel.cs b/ClassicalSharp/Model/ZombieModel.cs index 0f4b5184e..267a5e7a4 100644 --- a/ClassicalSharp/Model/ZombieModel.cs +++ b/ClassicalSharp/Model/ZombieModel.cs @@ -65,8 +65,8 @@ namespace ClassicalSharp.Model { DrawPart( Torso ); DrawRotate( 0, 12/16f, 0, p.leftLegXRot, 0, 0, LeftLeg ); DrawRotate( 0, 12/16f, 0, p.rightLegXRot, 0, 0, RightLeg ); - DrawRotate( 0, 22/16f, 0, (float)Math.PI / 2, 0, p.leftArmZRot, LeftArm ); - DrawRotate( 0, 22/16f, 0, (float)Math.PI / 2, 0, p.rightArmZRot, RightArm ); + DrawRotate( -6/16f, 22/16f, 0, (float)Math.PI / 2, 0, p.leftArmZRot, LeftArm ); + DrawRotate( 6/16f, 22/16f, 0, (float)Math.PI / 2, 0, p.rightArmZRot, RightArm ); graphics.AlphaTest = true; }