Jump to content

[1.7.2] Playerender Question


delpi

Recommended Posts

I'm trying two different ways to render an extra item and both work.  One is replacing playerrender and the other is using the forge event.

 

The problem that i'm having is I can't for the life of me figure out what the body rotation is on the player.

 

Yaw doesn't work, none of the model subparts for the body seem to be populated.

 

Anybody found a solution to the right variable?

Long time Bukkit & Forge Programmer

Happy to try and help

Link to comment
Share on other sites

Hi

 

Based on RendererLivingEntity.doRenderLiving, it appears to be

            float f2 = this.interpolateRotation(par1EntityLivingBase.prevRenderYawOffset, par1EntityLivingBase.renderYawOffset, par9);
            float f3 = this.interpolateRotation(par1EntityLivingBase.prevRotationYawHead, par1EntityLivingBase.rotationYawHead, par9);
[..]
            this.rotateCorpse(par1EntityLivingBase, f4, f2, par9);
[..]
            this.renderModel(par1EntityLivingBase, f8, f7, f4, f3 - f2, f5, f6);

 

Just a guess, haven't tried it myself.

 

-TGG

 

Link to comment
Share on other sites

Anybody know why rotationYaw refers to the head during this point in time.

 

Maybe I misunderstood, but I though it refereed to the body and rotationYawHead refered to the head.

Long time Bukkit & Forge Programmer

Happy to try and help

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
×
  • Create New...

Important Information

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