Jump to content

Easiest way to do translate/rotate player's arm in third person


poopoodice

Recommended Posts

After researching what I'm trying to do now is hide the hand model in pre event, and after everything's being renderer, I make the arms model visible and trying to do some translation and rotation of it. Unfortunately it is not as easy as just

leftArm.showModel = true;
leftArm.render(matrix, event.getBuffers().getBuffer(model.getRenderType(player.getLocationSkin())), event.getLight(), OverlayTexture.NO_OVERLAY);

The rotation angles and position must be set before actual render the model, otherwise it will just be there, ignore player rotations, and... acting weird.

What do I actually need for this? Do I even need a custom PlayerRenderer and PlayerModel?

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.