|
I have some scenery models with mesh colliders attached, along with enemies placed ontop of them. In my current AI code for the enemies, they chase the player by moving to the players position value, as described below.
However, when the enemy chases the player up a hill, they walk through the floor ignoring the mesh collider, and fall to their death. Each enemy has a character controller and a platformer controller attached. The game is a 2D sidescrolling platformer if that helps.
(comments are locked)
|
|
Couple things you could do:
Thanks for the reply. The reason I don't use rigidbodies is that the enemies behave in ways that do not fit the game. I felt that the problem was with using transform.Translate() to move the player, but I cannot apply a velocity since it does not have a rigidbody. I'll see if I can use SimpleMove instead and find out if that fixes the problem.
Jun 29 '10 at 11:20 AM
Deikkan
(comments are locked)
|
