I have the yaw and pitch of my unit at my disposal, I know if I use polar to cartesian conversion I'll get the X and Y of each one of those two, but I need them combined to give me the x,y and z of the direction I'm facing.
|
|
If you're using a different way to track your object, Spherical coordinates are essentially polar coordinates expanded with a third dimension. EDIT: I assume in Minecraft The The |
|||||||||||||||
|
|
If you have the Yaw and Pitch giving you the X and Y, can't you just assuming your roll (Z) is 0? Most game characters don't allow you to rotate on that axis. |
|||
|