|
Player is a FirstPersonController running around on a terrain. I want the enemies to be similar, they just look at and move toward the player, reacting to the terrain in much the same way as the player. I got the enemy chasing the player using it's transform.LookAt and transform.Translate but of course it moves in 3D space rather than along the ground. So how is this achieved? I assumed using the rigidbody.velocity but none of the myriad of things I tried worked. Any help/links appreciated.
(comments are locked)
|
|
Place a rigidbody and use gravity And to chase the player?
Mar 16 '11 at 09:32 PM
Stretch
I tohught you said you had the enemy chasing the player?
Mar 16 '11 at 09:45 PM
Ciaran 1
(comments are locked)
|
|
This is a good place to start: http://unity3d.com/support/resources/unity-extensions/locomotion-ik That's a little too advanced. I'm not worried their feet being in the right place, I'm just using capsules.
Mar 16 '11 at 09:24 PM
Stretch
(comments are locked)
|
