Posted June 8, 201411 yr 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
June 8, 201411 yr 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
June 8, 201411 yr Author 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
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.