Making Player Movement Less Floaty

Asked by At

So I am having issues with my movement in my runner game being way to icy because i have momentum, I have to stop going one way to go the other and it gives me this really icy effect i don't want.

I have tried upping friction but that results in my cube tumbling down the track

void FixedUpdate() {

    rb.AddForce(0, 0, forwardForce * Time.deltaTime);

    if (Input.GetKey("d"))
    {
        rb.AddForce(sidewaysForce * Time.deltaTime, 0, 0, ForceMode.VelocityChange);
    }

    if (Input.GetKey("a"))
    {
        rb.AddForce(-sidewaysForce * Time.deltaTime, 0, 0, ForceMode.VelocityChange);
    }

I want the movement to be nice and smooth and snappy.

0 Answers