Jump to content

Simple First Person Animation


mxa

Recommended Posts

How would I go about changing first person animation that results from a call of onItemRightClick?

I've found the FirstPersonRenderer class, and the relevant method renderItemInFirstPerson(), but seeing as all animations in this class seem to be hard-coded, is there any way for me to add my own animations?

To be clear, I do not want to animate the item model in any way (since I've read in the documentation that cannot be triggered with events), I just want to implement a simple movement of the item from the first person point of view. Specifically, I'd like for the item to briefly recoil towards the player after being used.

Of course, if this is all outside the range of the API, I would also like to know that so I can move on to something else.

Link to comment
Share on other sites

Thanks, I can use this. However, I was wondering if there were any way to smoothly animate the position of the item in the hand. For example, something that would allow me to put some modifier on the first person positioning encoded in a model's JSON file.

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.

Announcements



×
×
  • Create New...

Important Information

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