diff --git a/ClassicalSharp/Entities/Model/HumanModels.cs b/ClassicalSharp/Entities/Model/HumanModels.cs index bc9126ad6..6349f55ee 100644 --- a/ClassicalSharp/Entities/Model/HumanModels.cs +++ b/ClassicalSharp/Entities/Model/HumanModels.cs @@ -97,9 +97,6 @@ public class HumanoidHeadModel : HumanoidModel { protected override void RenderParts(Entity p) { HumanoidModel human = (HumanoidModel)game.ModelCache.Models[0].Instance; - human.cols = cols; - human.cosHead = cosHead; human.sinHead = sinHead; - human.uScale = uScale; human.vScale = vScale; vertices = human.vertices; DrawRotate(-p.HeadXRadians, 0, 0, human.Set.Head, true); @@ -137,9 +134,6 @@ public class ArmModel : HumanoidModel { protected override void RenderParts(Entity p) { HumanoidModel human = (HumanoidModel)game.ModelCache.Models[0].Instance; - human.cols = cols; - human.cosHead = cosHead; human.sinHead = sinHead; - human.uScale = uScale; human.vScale = vScale; vertices = human.vertices; SkinType skinType = p.SkinType; diff --git a/ClassicalSharp/Entities/Model/IModel.cs b/ClassicalSharp/Entities/Model/IModel.cs index cd984517e..508e206fc 100644 --- a/ClassicalSharp/Entities/Model/IModel.cs +++ b/ClassicalSharp/Entities/Model/IModel.cs @@ -74,8 +74,9 @@ public abstract class IModel { /// assuming that the model is not rotated at all. public abstract AABB PickingBounds { get; } - protected internal float cosHead, sinHead; - protected internal float uScale, vScale; + protected static float cosHead, sinHead; + protected static float uScale, vScale; + protected static int[] cols = new int[6]; /// Returns whether the model should be rendered based on the given entity's position. public static bool ShouldRender(Entity p, FrustumCulling culling) { @@ -158,7 +159,6 @@ public abstract class IModel { return p.TransformMatrix(p.ModelScale, pos); } - protected internal int[] cols = new int[6]; protected internal ModelVertex[] vertices; protected internal int index, texIndex;