I’m using a car script, and i cant get it to control the car as i want it to. i want it to accelerate faster and brake faster, right now its going very slow. Please help!
#pragma strict
var wheelFL : WheelCollider;
var wheelFR : WheelCollider;
var wheelRL : WheelCollider;
var wheelRR : WheelCollider;
var maxTorque : float = 2000;
function Start ()
{
}
function FixedUpdate ()
{
wheelRR.motorTorque = maxTorque * Input.GetAxis("Vertical");
wheelRL.motorTorque = maxTorque * Input.GetAxis("Vertical");
wheelFL.steerAngle = 50 * Input.GetAxis("Horizontal");
wheelFR.steerAngle = 50 * Input.GetAxis("Horizontal");
}
Any way i could make this more responsive? Thank you.
ok, i think this is a little more responsive, but is there any way i could make it brake harder and quicker? Because right now it takes a long time to brake for my game.
#pragma strict
var wheelFL : WheelCollider;
var wheelFR : WheelCollider;
var wheelRL : WheelCollider;
var wheelRR : WheelCollider;
var maxTorque : float = 2000;
function Start ()
{
}
function FixedUpdate ()
{
wheelRR.motorTorque = maxTorque * Input.GetAxisRaw("Vertical");
wheelRL.motorTorque = maxTorque * Input.GetAxisRaw("Vertical");
wheelFL.steerAngle = 50 * Input.GetAxisRaw("Horizontal");
wheelFR.steerAngle = 50 * Input.GetAxisRaw("Horizontal");
}