void Start() { CarSimMovement = this.GetComponent <CarSimMovementComponent>(); //Get Vx Variable VarVx = new VSVehicleVarDouble("Vx", VsVarDirection.Output, CarSimMovement.VehicleSolver); VarAvEng = new VSVehicleVarDouble("AV_Eng", VsVarDirection.Output, CarSimMovement.VehicleSolver); }
// Start is called before the first frame update void Start() { VehicleController = GetComponent <VehicleController>(); CarSimMovement = GetComponent <CarSimMovementComponent>(); VarVx = new VSVehicleVarDouble("Vx", VsVarDirection.Output, CarSimMovement.VehicleSolver); VarVy = new VSVehicleVarDouble("Vy", VsVarDirection.Output, CarSimMovement.VehicleSolver); VarVz = new VSVehicleVarDouble("Vz", VsVarDirection.Output, CarSimMovement.VehicleSolver); VarAVx = new VSVehicleVarDouble("AVx", VsVarDirection.Output, CarSimMovement.VehicleSolver); VarAVy = new VSVehicleVarDouble("AVy", VsVarDirection.Output, CarSimMovement.VehicleSolver); VarAVz = new VSVehicleVarDouble("AVz", VsVarDirection.Output, CarSimMovement.VehicleSolver); VarAvEng = new VSVehicleVarDouble("AV_Eng", VsVarDirection.Output, CarSimMovement.VehicleSolver); VarGearStat = new VSVehicleVarDouble("GearStat", VsVarDirection.Output, CarSimMovement.VehicleSolver); VarTrans = new VSVehicleVarDouble("IMP_MODE_TRANS", VsVarDirection.Input, CarSimMovement.VehicleSolver); VarTrans.Value = 6; }