- Home /
Enemy Follow AI problem
I made an enemyAI script to look at my car and always go ahead at a certain speed. For this i used the motorTorque and the LookAt(). But the problem is, if my character is not at the same level (plain) as the enemy.. then the enemy car bends down and literally stands on its bumpers to look at my car. This looks really weird. Someone pls help me! Is there a way to better the script OR some other way...
Comment
Try ignoring the target's .Y on the LookAt. (target.pos.x,transform.pos.y,target.pos.z) as the LookAt()
Your answer
Follow this Question
Related Questions
Simple AI Error 8025 Parrsing error. 2 Answers
My Eneny AI Script Wont Work? 2 Answers
Enemy Patrol 1 Answer
Enemy not rotating when inside range 1 Answer