Jump to content

Recommended Posts

Posted
8 minutes ago, diesieben07 said:

You have to use one of them. Using just RenderPlayerEvent does not produce useful results.

What do you mean by "not working"?

my method isn't being called.

Posted
Just now, matthew123 said:

Is that event only for remote players? I want to modify my player.

Oh, I get it. On singleplayer, it does not render the player model. Thus, theoretically, it should work when I go into 3rd person?

Posted
Just now, diesieben07 said:

It should work fine if you go in third person. How have you checked?

By going into third person The arm did not rotate. But I also want the pose in first person to change.

Posted
19 minutes ago, diesieben07 said:

It should work fine if you go in third person. How have you checked?

I will implement the hand animation using RenderHandEvent. How do I work with these quaternions?

Posted
9 minutes ago, matthew123 said:

I will implement the hand animation using RenderHandEvent. How do I work with these quaternions?

I will just be tweaking the Euler angle until i get it right.

Posted
3 minutes ago, diesieben07 said:

Show your code.

 event.getRenderer().getModel().rightArm.yRot = 50f;
 event.getRenderer().getModel().rightArm.xRot = 50f;

I also need to render two hands in first person. Is it possible to somehow copy the matrix from the stack then add it on top after rotation to emulate a second hand?

Posted
Just now, matthew123 said:
 event.getRenderer().getModel().rightArm.yRot = 50f;
 event.getRenderer().getModel().rightArm.xRot = 50f;

I also need to render two hands in first person. Is it possible to somehow copy the matrix from the stack then add it on top after rotation to emulate a second hand?

Huh. Now that i think about it, the POST event is AFTER the thing was rendered. So I may need to do it in PRE, right?

Posted
10 minutes ago, diesieben07 said:

That's not how that works.

There is no event that lets you modify the animations.

Then, how would I go about rotating / animating things in the player model?

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.

Announcements



×
×
  • Create New...

Important Information

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