- Home /
 
LookAt inaccurate rotation issue (javascript)
So I'm trying to make a "Slender" type game, just to see if I can, but I've encountered a strange problem. When I try to make the enemy look at you (with the LookAt function), rather than his face staring at you, the top of his head looks at you instead. How can I fix this?
Please help, Bufflez
               Comment
              
 
               
               
               Best Answer 
              
 
              Answer by hvilela · Oct 09, 2012 at 01:02 AM
Create an empty game object, make the enemy child of it and add your look at script to this new game object. Now you rotate your enemy to fix the direction.
Well gee... That was easy. I've been trying to fix this for hours... but hey! thanks
Your answer
 
             Follow this Question
Related Questions
Rotation using Unity2D 3 Answers
Lock rotation axis? 4 Answers