I managed to make an enemy(character controller attached) follow the player on an even surface. Basically, I animate based on the difference of positions between them:
But, on uneven terrains or levels it moves toward the player THRU or flying over them instead of moving on it. does anyone know how to get over this problem?
Thanks in advance.
asked Nov 21 '10 at 03:09 AM
Are you using controller.Move()? If you simply move the transform of your enemy, it will ignore any collisions. But if you use controller.Move(), the collisions are handled by the character controller. I made this mistake myself, not too long ago...
answered Nov 21 '10 at 02:19 PM