Search Unity

AddRelativeForce is not working when using wheel colliders?

Discussion in 'Physics' started by Bongmo, Jan 2, 2018.

  1. Bongmo

    Bongmo

    Joined:
    Jan 18, 2014
    Posts:
    155
    Hi.

    I made a simple car with wheel colliders.

    Now I'm trying to move the car with:
    rb.AddRelativeForce(Vector3.forward * speed);

    It's not moving, because of the wheel colliders. How can I use wheel colliders and AddRelativeForce?

    PS: I know how to move the car with the wheel colliders, but I want to move it with AddRelativeForce.