hi i am making a game and i am using this code to enemy follow player
transform.Translate(Vector3.forward * moveSpeed * Time.deltaTime);
the problem is my game is on a terrain and has some Heightes now when the enemey is following me he is flying somehow !
now i want to know how can i fix this!
and a easy way is better!
↧