Jump to content

Recommended Posts

Posted (edited)

Right now I'm using PlayerEntity.getLookVec() or something similar (I'm not at my computer) in order to work out what direction the player is looking in. However, when the player looks directly at the floor it stops working, is there anyway to ignore the pitch the player is looking at?

 

Thanks for your help!

Edited by squidlex
Posted
On 9/2/2020 at 5:48 PM, vemerion said:

You can use the static method fromPitchYaw in Vec3d to get a vector from the pitch and/or yaw of an entity.

thank you so much! this worked perfectly.

  • Like 1

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.