|
Hi all! 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.
(comments are locked)
|
|
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... Thanks a lot. This solves the problem.
Nov 26 '10 at 02:41 AM
uhahaha
Please click the check mark next to the answer, so it is logged as answered (so other people who are searching similar problems will know this post is helpful).
Nov 26 '10 at 02:58 AM
The_r0nin
loginuhahaha would you mind sharing the code? Thanks :).
Feb 17 '11 at 10:12 PM
joeyrubio
(comments are locked)
|
