Original Post
Hello,
Currently, I am trying to create a facing vector for my 3D object in the game. However, I can never nake it works for 360d. What I have done is this, I have prset an initial facing vector for the object, and when the object rotate, let say 30d along y axis, then I transform the vector whith the rotationY matrix by
-30d. It works fine for 0d to 180d, but the value of the facing vector repeat after 180s to 360d. As the result, I cannot define where my object is facing to because there are two facing vector value within 360d. Can anyone suggest any solution on how to uniquely determine the facing vector within 360d?
Thanks!
Nachi