I followed so many tutorials but can't find why my car is so slow?
Values:
![alt text][1]
max torgue = 1000 also tried like 8000 doesn't work
steer angle 45 can't almost steer
mass 1500
Wheel colliders:
![alt text][2]
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);
}
}
[1]: /storage/temp/98853-knipsel.png
[2]: /storage/temp/98854-knip2.png
↧