Skip to content

Commit f2023d8

Browse files
committed
small non llibrary lemur update.
1 parent 90fbb9a commit f2023d8

1 file changed

Lines changed: 8 additions & 1 deletion

File tree

src/main/java/com/crowsofwar/avatar/client/render/ModelLemur.java

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
import net.minecraft.entity.Entity;
99
import net.minecraft.entity.EntityLivingBase;
1010
import net.minecraft.entity.player.EntityPlayer;
11+
import net.minecraft.util.math.MathHelper;
1112
import net.minecraftforge.fml.relauncher.Side;
1213
import net.minecraftforge.fml.relauncher.SideOnly;
1314
import org.lwjgl.opengl.GL11;
@@ -1526,7 +1527,13 @@ else if (lemur.speed > 0.1F && lemur.speed < 0.25F && !lemur.isLemurRiding())
15261527
@Override
15271528
public void setRotationAngles(float limbSwing, float limbSwingAmount, float ageInTicks, float netHeadYaw, float headPitch, float scaleFactor, Entity entityIn) {
15281529
super.setRotationAngles(limbSwing, limbSwingAmount, ageInTicks, netHeadYaw, headPitch, scaleFactor, entityIn);
1529-
1530+
//TODO
1531+
this.theHead.rotateAngleY = netHeadYaw * 0.017453292F;
1532+
this.theHead.rotateAngleX = headPitch * 0.017453292F;
1533+
this.ArmLeft.rotateAngleX = MathHelper.cos(limbSwing * 0.6662F) * 1.4F * limbSwingAmount;
1534+
this.ArmRight.rotateAngleX = MathHelper.cos(limbSwing * 0.6662F + (float)Math.PI) * 1.4F * limbSwingAmount;
1535+
this.ArmLeft.rotateAngleX = MathHelper.cos(limbSwing * 0.6662F + (float)Math.PI) * 1.4F * limbSwingAmount;
1536+
this.ArmRight.rotateAngleX = MathHelper.cos(limbSwing * 0.6662F) * 1.4F * limbSwingAmount;
15301537

15311538
}
15321539
private float triangleWave(float p_78172_1_, float p_78172_2_)

0 commit comments

Comments
 (0)