void Start() { carScript = GetComponent <VehicleController>(); carDataController = GetComponent <VehicleDataController>(); pidController = new PIDController(); }
void Awake() { //Move the center of mass down Rigidbody carRB = GetComponent <Rigidbody>(); carRB.centerOfMass = carRB.centerOfMass - new Vector3(0f, 0.8f, 0f); //Get the scripts we will need //PIDScript = GetComponent<PIDController>(); carDataController = GetComponent <VehicleDataController>(); followPathScript = GetComponent <FollowPath>(); }