- Home /
Enemy position transform
I have in my Enemy A.I. scrip this position transform.
//move towards the player
if(stop == false)
myTransform.position += myTransform.forward * moveSpeed * Time.smoothDeltaTime;
What kind of built do I need for my enemy to use gravity (to move on the terrain like I do because my enemy floats) and why even tough I set the colliders my enemy can pass trough other colliders ?
Thank you.
Answer by fafase · Aug 15, 2012 at 03:46 PM
You need to add a character controller and get it to move the NPC. Don't get me wrong but you also need to use the search bar since this has been a recurrent question.
http://answers.unity3d.com/questions/229547/enemies-dont-collide.html
Your answer
Follow this Question
Related Questions
Return Enemy To Start Position 1 Answer
transporting player to gameobject when it collides with different gameobject 0 Answers
How to move an GameObject to a random position in a defined area? 1 Answer
How to assign x and y transform values of an gameobject to user defined variables? 1 Answer
How can I get a GameObject's transform in game and set that to a variable? 1 Answer