- Home /
Question by
MK7 · Apr 16, 2011 at 05:07 AM ·
directionmouselookfirst-person-controllersyntax
player view Rotation check
I'm trying to set up a way to tell what direction the player is facing. I guess it would be a lot like a compass but I only want to print "player is facing forward,backward,left or right. For example, if the first person controllers Transform rotation was between 300 and 60 degrees it would be considered facing forward.
I've been toying with a way to do this for a while but have had no luck at all. Any help would be greatly appreciated.
Comment
Your answer
![](https://koobas.hobune.stream/wayback/20220613123109im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
Look Vector of Mouse 1 Answer
C# How do I toggle MouseLook in game? 1 Answer
How do I disable mouse to turning right 0 Answers
an interesting MouseLook script issue 2 Answers
How to move in a direction rather than in axis using joysticks? 1 Answer