I am developing an AI system. Currently, I am doing this:
transform.position = Vector3.MoveTowards(transform.position, player.position, moveSpeed * Time.deltaTime);
Works great, until the player goes at a higher point then the enemy...
How can I make it so that the enemy does not fly upwards towards the player?
If you take a look at this function you may get something to proceed further!?!?!
answered Dec 28 '11 at 11:38 AM