I am quite new to Unity, and I would like to know how to change the first person controller speed so that it can move faster?
I built a terrain that is 2000x2000, and the first person controller is moving very slowly.
I also want the player to be able to go upward and downward when they are looking up or down, like floating. I am looking at addforce. But I am not sure how to write it.
I have:
#pragma strict
var controllerScript = gameObject.GetComponent("FirstPersonController");
function Start () {
}
// Adds a force upwards in the global coordinate system
function Update () {
controllerScript.maxForwardSpeed = 1;
rigidbody.AddForce (Vector3.up * 100);
}
↧