Question by
EvanCheddar · Apr 25, 2018 at 09:45 PM ·
enemylookatfollow playereyesyaxis
How can I get a game object to follow another?
Hello all, I have a player that only moves along the Y axis and I have a stationary enemy. How can I get my enemies eyes (2 sphere game objects) to follow my player's movement up and down? I've tried "transform.LookAt(targetPoint.position);" but it completely distorts the eye objects. Thanks in advance to anyone who can help with this.
Comment
LookAt
is the way to go. If your eyes are distorted, you may have a parent gameObject whose scale is not uniform (1, 1, 1) / (2, 2, 2) / (86, 86, 86) / ( S, S, S )
Your answer
Follow this Question
Related Questions
How to stop enemy following the player 2 Answers
enemy look at GameObject player? unity ver. 5.2 C# 0 Answers
Transform.LookAt to a certain angle. 1 Answer