The script doesnt allow me to move unless grounded
2190397–145328–PlayerMovement.cs (1.03 KB)
The script doesnt allow me to move unless grounded
2190397–145328–PlayerMovement.cs (1.03 KB)
Try my character controller tutorial. It will get a nice controller for you in about 20 minutes.
@ConfusedEdBoy The problem with your script is that you ignore all input whenever the max velocity is reached:
So, if you are falling quickly, you won’t be able to apply additional input:
if (GetComponent<Rigidbody> ().velocity.magnitude < maxSpeed)
An alternative approach would do this: