void Start() { pathControllerScript = GetComponent <FollowPath>(); //best_error = Mathf.Abs(pathControllerScript.CalculateCTE()); //StartCoroutine(UpdateTwiddle()); }
void Start() { //Move the center of mass down Rigidbody carRB = GetComponent <Rigidbody>(); carRB.centerOfMass = carRB.centerOfMass - new Vector3(0f, 0.8f, 0f); PIDScript = GetComponent <PIDController>(); carData = GetComponent <CarData>(); followPathScript = GetComponent <FollowPath>(); }