Jump to content

Recommended Posts

Posted (edited)

oi, estou fazendo um mod que pega um .obj da pasta do servidor e renderiza na pele do jogador, mas eu tenho um pequeno problema com a inclinação de rotação da cabeça, a rotação de guinada está indo bem, mas quando eu giro o campo, a pele fica longe do jogador.
este é o meu método para renderizar a pele:

    if(ModelManager.hasHead(model)){
        GL11.glPushMatrix();
        GL11.glTranslatef(0, -1.7F, 0.0F);
        GL11.glRotatef(180, 0.0F, 1.0F ,0.0F);
        GL11.glRotatef(-(entityPlayer.rotationYawHead), 0.0F, 1.0F ,0.0F);
        GL11.glRotatef(-(entityPlayer.rotationPitch), 1.0F, 0.0F, 0.0F);
        if(entityPlayer.isSneaking()){
            GL11.glTranslatef(0.0F, 0F, 0.2F);
        }
        Minecraft.getMinecraft().getTextureManager().bindTexture(customTexture);
        customModelHead.renderAll();
        GL11.glPopMatrix();
    }

e isso é o que acontece quando eu giro a inclinação:
image.png.24be129b50a57c3155d6a974eafc5c03.png

como faço para colocar o capacete no jogador?

Edited by Krimbo
Posted

1.7 is no longer supported on this forum.

Please update to a modern version of Minecraft to receive support.

This is my Forum Signature, I am currently attempting to transform it into a small guide for fixing easier issues using spoiler blocks to keep things tidy.

 

As the most common issue I feel I should put this outside the main bulk:

The only official source for Forge is https://files.minecraftforge.net, and the only site I trust for getting mods is CurseForge.

If you use any site other than these, please take a look at the StopModReposts project and install their browser extension, I would also advise running a virus scan.

 

For players asking for assistance with Forge please expand the spoiler below and read the appropriate section(s) in its/their entirety.

  Reveal hidden contents

 

Guest
This topic is now closed to further replies.

Announcements



×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.