Hey Guys, i need some help on making my enemy follow me a little more advanced. Right now all i have is:
var moveSpeed = 5;
var target : Transform;
function Update ()
{
transform.LookAt(target);
transform.Translate(Vector3.forward * moveSpeed);
transform.rotation.x = 0;
transform.rotation.z = 0;
transform.position.y = 0.5;
}
All my enemy does is walk right to me, but what i would like to know is how i can get him to walk around walls to get to me instead of trying to walk right through them. Thanks!
Upvoted. Further information : * http://unitygems.com * http://vimeo.com/9304844 * http://www.youtube.com/watch?v=Sj4oxfQqzhA * http://www.youtube.com/watch?v=JlulRhjLsNY * http://www.youtube.com/watch?v=szxB6RBhVyQ .... a bit of advertising for both of us ;)
– AlucardJay