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?
– Meater6yes I do have a rigid body on the car
– anon21826004