コード例 #1
0
        void Start()
        {
            carScript = GetComponent <VehicleController>();

            carDataController = GetComponent <VehicleDataController>();

            pidController = new PIDController();
        }
コード例 #2
0
        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>();
        }