FPS1.3 Basic Walking/Running.

I just started watching your tutorial(EteeskiTutorial) because the tutorial is very clear and i am looking forward to the next tutorial.

My PlayerCapsule is not moving forward,backward or sideway and it is not rotating either.
Any help would be appreciate.Thanks.

PlayerMovementScript :

var walkAcceleration : float = 5;
var cameraObject : GameObject;

function Update () 
{
     transform.rotation = Quaternion.Euler(0, cameraObject.GetComponent(MouseLookScript).currentYRotation, 0);
     rigidbody.AddRelativeForce(Input.GetAxis("Horizontal") * walkAcceleration, 0, Input.GetAxis("Vertical") * walkAcceleration);
}

Perhaps this should be done in the FixedUpdate. Most AddForce stuff needs to be there.

yeah, I end up changing that later on in the tutorials. It should still work though. Try changing the walkAcceleration variable up to 1000000, if you fly off the map, the game is working :slight_smile: (btw change it in the inspector, in unity.)

Thank you both for the responds, i have fixed the problem. eteeski keep up the good work.