Question by
smokegun · Jul 31, 2017 at 03:55 PM ·
physicswheelcollider
Why is my car so goddamm slow?
I followed so many tutorials but can't find why my car is so slow?
Values:
max torgue = 1000 also tried like 8000 doesn't work
steer angle 45 can't almost steer
mass 1500
Wheel colliders:
Code:
private void FixedUpdate()
{
float motor = maxTorque * Input.GetAxis("Vertical");
float steering = steerAngle * Input.GetAxis("Horizontal");
foreach (Axis axle in axles)
{
if (axle.steer)
{
axle.wheelLeft.steerAngle = steering;
axle.wheelRight.steerAngle = steering;
}
if (axle.useMotor)
{
axle.wheelLeft.motorTorque = motor;
axle.wheelRight.motorTorque = motor;
}
ApplyWheelVisualRotation(axle.wheelRight);
ApplyWheelVisualRotation(axle.wheelLeft);
}
}
knipsel.png
(45.0 kB)
knip2.png
(22.0 kB)
Comment