Posted September 2, 20205 yr 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 September 2, 20205 yr by squidlex
September 2, 20205 yr You can use the static method fromPitchYaw in Vec3d to get a vector from the pitch and/or yaw of an entity.
September 7, 20205 yr Author 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.
September 7, 20205 yr 30 minutes ago, squidlex said: thank you so much! this worked perfectly. Happy to help Edited September 7, 20205 yr by vemerion
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.