Quantcast
Channel: Latest Questions on Unity Answers
Viewing all articles
Browse latest Browse all 171066

How to change the first person controller speed?

$
0
0
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); }

Viewing all articles
Browse latest Browse all 171066

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>