I’ve been controlling my player through adding force, and I’ve recently started to notice that it takes a while for player to hit maximum speed as such. I thought about setting a variable, but am stll somewhat lost.
I’d actually like to be able to control the player speed in someway, so will have to look into that.
the code I used to control player:
if (Input.GetKey ("right")) {
rigidbody.AddForce (Vector3.forward * 10);
}
You need to understand how forces work. Assuming that you are using a metric-esque system, 1 unit (Newton) of force will cause a 1 Kilogram object to accelerate to a speed of 1 m/s. Using forces is probably not the best way to go if you want tight character controls.
You may want to consider using ForceMode.Impulse or ForceMode.Acceleration. Both would give you quicker results.
Or, directly modify rigid body.velocity.
Or, use a character controller. All these are options