Car (speeder) doesn't move [NOT SOLVED]

Ok, so I'm trying to make a speeder game (think F-Zero) that uses car physics. I have created a speeder model and added three wheel colliders, one in front and two in back.

The problem is I can't get the darn thing to move. here is the code, for testing reasons, I made it so that the speeder should move automatically.

var FWheel : WheelCollider;
var RRWheel : WheelCollider;
var RLWheel : WheelCollider;

function Update () {
    //var z = 0.00;
    //z = Input.GetAxis("vertical") * Time.deltaTime * acceleration;    

    //rigidbody.AddRelativeForce(0,0,0);
    FWheel.motorTorque = 100;
    RRWheel.motorTorque = 100;
    RLWheel.motorTorque = 100;  

}

The problem is, It doesn't move!

I have linked the wheel colliders and everything. The speeder is supposed to move on a flat terrain, which it is in contact with (the invisible wheels anyway).

Thanks :)

Is there a rigidbody on the car?

yes I do have a rigid body on the car

1 Answer

1

Ensure that the Friction Curves of the WheelColliders have valid parameters. A proper values for the properties forwardFriction and sidewaysFriction could be the default ones by changing the stifness (latest parameter) only:

1,20000,2,10000,0.02

In particular, if the vehicle doesn't respond to the motorTorque is probably that one of the forwardFriction values is 0.

You can vary the latest parameter from 0.01 to 0.04 in order to achieve different behaviors.

Ok, I tried messing with these values and that didn't seem to do anything. Thanks for the reply though