I am new to unity and know nothing about it. I got all the other stuff going in my FPS project but I don’t know how to make my guy move.
If you know how please tell me and I will be very grateful.
2 Answers
2try this tested works fine.add rigidbody to your gameobject before you apply the code below,please vote me ,thank you
transform.position += new Vector3(-4,0,0)* Time.deltaTime;
if you want to move from A to B use this
//endPos is the position where you want your object to move
transform.position = Vector3.Lerp(this.gameObject.transform.position, endPos,10* Time.time);
You could look there http://unitygems.com/basic-ai-character/
– fafasehow caN I MOVE MY soldier in unity 3d ??? can anyone tell me ?? i wanna make a sodier game like hunting.so i cant move my soldiers yet .so any one have any solution tellor email at rajazeshanriaz@outlook.com
– Zishii