-
What is the best way to get the forward vector for Character? |
Beta Was this translation helpful? Give feedback.
Answered by
SirLynix
Jan 10, 2024
Replies: 1 comment 2 replies
-
Take its quaternion rotation and multiply it by your forward. JPH::Vec3 charForward = character.GetRotation() * JPH::Vec3(0, 0, -1); // assuming Y up and right-handed, (0,0,1) for left-handed |
Beta Was this translation helpful? Give feedback.
2 replies
Answer selected by
ktimam
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Take its quaternion rotation and multiply it by your forward.
For example: