EyeOfSchrodingerRenderer.java 文件源码

java
阅读 23 收藏 0 点赞 0 评论 0

项目:Solar 作者:
@Override
protected void applyRotations(EntityEyeOfSchrodinger schrodinger, float p_77043_2_, float rotationYaw, float partialTicks) {
    GlStateManager.rotate(180F - rotationYaw, 0F, 1F, 0F);
    GlStateManager.rotate(-schrodinger.rotationPitch, 1F, 0F, 0.0F);

    if(schrodinger.deathTime > 0) {
        float f = ((float) schrodinger.deathTime + partialTicks - 1.0F) / 20.0F * 1.6F;
        f = MathHelper.sqrt(f);

        if(f > 1.0F) {
            f = 1.0F;
        }

        GlStateManager.rotate(f * this.getDeathMaxRotation(schrodinger), 0.0F, 0.0F, 1.0F);
    }
}
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号