Exemple #1
0
    public void HandleSteering(float steerAngle)
    {
        float clampedSteerAngle = Mathf.Clamp(steerAngle, -maxSteerAngle, maxSteerAngle);

        frontLeftWheel.ApplySteering(clampedSteerAngle);
        frontRightWheel.ApplySteering(clampedSteerAngle);
    }