Why is not correctly working script?

Hello. please tell me why it does not work correctly the script
using UnityEngine;
using System.Collections;

public class CarController : MonoBehaviour {

 public WheelCollider[] WColForward;
 public WheelCollider[] WColBack;

 public float maxSteer = 30; //1
 public float maxAccel = 25; //2
 public float maxBrake = 50; //3

 // Use this for initialization
 void Start () {


 void FixedUpdate () {

 float accel = 0;
 float steer = 0;

 accel = Input.GetAxis("Vertical"); //4
 steer = Input.GetAxis("Horizontal"); //4 

 CarMove(accel,steer); //5


 private void CarMove(float accel,float steer){ //5

 foreach(WheelCollider col in WColForward){ //6
 col.steerAngle = steer*maxSteer; //6

 if(accel == 0){ //7
 foreach(WheelCollider col in WColBack){ //7
 col.brakeTorque = maxBrake; //7

 }else{ //8

 foreach(WheelCollider col in WColBack){ //8
 col.brakeTorque = 0; //8
 col.motorTorque = accel*maxAccel; //8

it kinda works but the impression that car like pulling his ears barely accelerates and barely turns. releasing the button stops abruptly. if you start to change the indicators that do not adequately behaves, that is, for example, starts to slow down when turning.
the lesson is taken from here: https://habr.com/ru/post/115557/
April 19th 20 at 12:14
1 answer
April 19th 20 at 12:16
That is, a script in order to work correctly?

Play with the weight of the car, wheels, strength and scale of the scene. I think it is in Your case.
and that the strength and scale of the scene, can you explain? the weight of the car and change the wheels. faster begins to move but at some point flips, and the food just right. - bria_Gulgowski commented on April 19th 20 at 12:19
@bria_Gulgowski, I don't know, I with wheels did not work, I only know in General how the mechanics works. Your scene, You know better. Play with settings, try other tutorials, and eventually it will be clear what depends on what. - Lavonne commented on April 19th 20 at 12:22
@Lavonne, thank you I will try. Basically all take and use already ready decision vehicle of the built-in assets. Just change the view. I also want to understand from scratch how things work. - bria_Gulgowski commented on April 19th 20 at 12:25

Find more questions by tags Unity Game EngineC#