Fixed staff rotation in third person.

This commit is contained in:
allstar69 2013-07-18 13:28:56 -07:00
commit 3d263f4d92
6 changed files with 90 additions and 30 deletions

View file

@ -30,85 +30,71 @@ public class ModelStaff extends ModelBase
Shape1.addBox(0F, 0F, 0F, 1, 20, 1);
Shape1.setRotationPoint(0F, 0F, 0F);
Shape1.setTextureSize(64, 64);
Shape1.mirror = true;
setRotation(Shape1, 0F, 0F, 0F);
Shape2 = new ModelRenderer(this, 20, 0);
Shape2.addBox(0F, 0F, 0F, 3, 3, 3);
Shape2.setRotationPoint(-1F, -3F, -1F);
Shape2.setTextureSize(64, 64);
Shape2.mirror = true;
setRotation(Shape2, 0F, 0F, 0F);
Shape3 = new ModelRenderer(this, 8, 0);
Shape3.addBox(0F, 0F, 0F, 3, 1, 1);
Shape3.setRotationPoint(1F, 1F, 0F);
Shape3.setTextureSize(64, 64);
Shape3.mirror = true;
setRotation(Shape3, 0F, 0F, 0F);
Shape4 = new ModelRenderer(this, 16, 0);
Shape4.addBox(0F, 0F, 0F, 1, 3, 1);
Shape4.setRotationPoint(3F, -2F, 0F);
Shape4.setTextureSize(64, 64);
Shape4.mirror = true;
setRotation(Shape4, 0F, 0F, 0F);
Shape6 = new ModelRenderer(this, 16, 0);
Shape6.addBox(0F, 0F, 0F, 1, 3, 1);
Shape6.setRotationPoint(-3F, -2F, 0F);
Shape6.setTextureSize(64, 64);
Shape6.mirror = true;
setRotation(Shape6, 0F, 0F, 0F);
Shape7 = new ModelRenderer(this, 8, 0);
Shape7.addBox(0F, 0F, 0F, 1, 1, 3);
Shape7.setRotationPoint(0F, 1F, -3F);
Shape7.setTextureSize(64, 64);
Shape7.mirror = true;
setRotation(Shape7, 0F, 0F, 0F);
Shape8 = new ModelRenderer(this, 8, 0);
Shape8.addBox(0F, 0F, 0F, 1, 1, 3);
Shape8.setRotationPoint(0F, 1F, 1F);
Shape8.setTextureSize(64, 64);
Shape8.mirror = true;
setRotation(Shape8, 0F, 0F, 0F);
Shape9 = new ModelRenderer(this, 16, 0);
Shape9.addBox(0F, 0F, 0F, 1, 3, 1);
Shape9.setRotationPoint(0F, -2F, 3F);
Shape9.setTextureSize(64, 64);
Shape9.mirror = true;
setRotation(Shape9, 0F, 0F, 0F);
Shape10 = new ModelRenderer(this, 16, 0);
Shape10.addBox(0F, 0F, 0F, 1, 3, 1);
Shape10.setRotationPoint(0F, -2F, -3F);
Shape10.setTextureSize(64, 64);
Shape10.mirror = true;
setRotation(Shape10, 0F, 0F, 0F);
Shape11 = new ModelRenderer(this, 32, 0);
Shape11.addBox(0F, 0F, 0F, 1, 1, 3);
Shape11.setRotationPoint(0F, 20F, -1F);
Shape11.setTextureSize(64, 64);
Shape11.mirror = true;
setRotation(Shape11, 0F, 0F, 0F);
Shape13 = new ModelRenderer(this, 0, 0);
Shape13.addBox(0F, 0F, 0F, 1, 1, 1);
Shape13.setRotationPoint(-1F, 20F, 0F);
Shape13.setTextureSize(64, 64);
Shape13.mirror = true;
setRotation(Shape13, 0F, 0F, 0F);
Shape14 = new ModelRenderer(this, 0, 0);
Shape14.addBox(0F, 0F, 0F, 1, 1, 1);
Shape14.setRotationPoint(1F, 20F, 0F);
Shape14.setTextureSize(64, 64);
Shape14.mirror = true;
setRotation(Shape14, 0F, 0F, 0F);
Shape5 = new ModelRenderer(this, 8, 0);
Shape5.addBox(0F, 0F, 0F, 3, 1, 1);
Shape5.setRotationPoint(-3F, 1F, 0F);
Shape5.setTextureSize(64, 64);
Shape5.mirror = true;
setRotation(Shape5, 0F, 0F, 0F);
Shape12 = new ModelRenderer(this, 0, 0);
Shape12.addBox(0F, 0F, 0F, 1, 1, 1);
Shape12.setRotationPoint(0F, 21F, 0F);
Shape12.setTextureSize(64, 64);
Shape12.mirror = true;
setRotation(Shape12, 0F, 0F, 0F);
}