Mouse Car Controller

From UnityCar Wiki

Jump to: navigation, search

This class is an implementation of the abstract class Car Controller. Its used to change the way the car reacts to control inputs (mouse inputs). Parameters:


  • Brake (READ ONLY) actual brake input (0,1).


  • Throttle (READ ONLY) actual throttle input (0,1).


  • Steering (READ ONLY) actual steering input (-1,+1).


  • Smooth Input If checked steer, throttle and brakes inputs are smoothed using the next parameters (useful with digital input like keyboard). Otherwise, inputs are used without any modification.


  • Throttle Time How long it takes to fully engage the throttle (in seconds). Typical value 0.1. Used only if Smooth Input is checked.


  • Throttle Release Time How long it takes to fully release the throttle (in seconds). Typical value 0.1. Used only if Smooth Input is checked.


  • Max Throttle In Reverse Max value for the throttle in reverse. In this way you can limit the max throttle in reverse. Useful for powerful cars, in order to make them more controllable in reverse. Normal throttle value range is from 0 to 1. Typical value is 0.5 or less. Used only if Smooth Input is checked.


  • Brakes Time How long it takes to fully engage the brake (in seconds).Typical value 0.1. Used only if Smooth Input is checked.


  • Brakes Release Time How long it takes to fully release the brake (in seconds). Used only if Smooth Input is checked.


  • Steer Time How long it takes to fully turn the steering wheel from center to full lock (in seconds).Typical values are 0.1 for a city environment with sharp curves, 0.5 or more for a high speed track. Used only if Smooth Input is checked.


  • Steer Release Time How long it takes to fully turn the steering wheel from full lock to center (in seconds). Typical values are 0.1 for a city environment with sharp curves, 0.5 or more for a high speed track. Used only if Smooth Input is checked.


  • Velo Steer Time This is added to Steer Time per m/s of velocity, so steering is slower when the car is moving faster. Typical values are 0.05 for a city environment with sharp curves, 0.1 or more for a high speed track. Used only if Smooth Input is checked.


  • Velo Steer Release Time This is added to Steer Release Time per m/s of velocity, so steering is slower when the car is moving faster. Typical values are 0.05 for a city environment with sharp curves, 0.1 or more for a high speed track. Used only if Smooth Input is checked.


  • Steer Correction Factor This factor is used when the player tries to counter steer to correct an oversteer situation. In this case steering speed will be multiplied by the difference between steerInput and current steering times this factor, to make the correction easier.


  • Steer Assistance If checked, steer assistance is enabled. Steer assistance prevents steering more than necessary in curves.


  • TCS If checked, Traction control is enabled. Traction control prevents wheels spinning while accelerating.


  • TCS Threshold This value sets the threshold for the Traction control. Set to zero, Traction control is triggered as soon as the wheels start spinning (wheels start losing traction). Set to a negative value, Traction control is triggered before wheels start spinning. Set to a positive value, Traction control is triggered after wheels start spinning. A value of +0.1 means that traction control is triggered when the the wheel reach 10% more the maximum traction value. A value of -0.1 means that traction control is triggered when the the wheel reach 10% less the maximum traction value.


  • TCS Allowed Slip (UNITYCAR 2.2) allowed tire slip before TCS intervention. A value of 0.1 means that is allowed 10% of tire slip before TCS intervention.


  • TCS Min Velocity minimum vehicle velocity (in km/h) to trigger TCS intervention.


  • ABS If checked, Anti Lock System is enabled. ABS prevents wheels locking while braking.ABS Threshold. This value sets the threshold for the ABS. Set to zero, ABS is triggered as soon as the wheels start locking. Set to a negative value, ABS is triggered before wheels start locking. Set to a positive value, ABS is triggered after wheels start locking. This is a percentage value in the sense that a value of +0.1 or -0.1 means 10% more or less the maximum traction value.


  • ABS Allowed Slip (UNITYCAR 2.2) allowed tire slip before ABS intervention. A value of 0.1 means that is allowed 10% of tire slip before ABS intervention.


  • ABS Min Velocity minimum vehicle velocity (in km/h) to trigger ABS intervention.


  • ESP If checked, Stability Control is enabled. This component tries to detect and minimize skids applying braking to individual wheel, such as the outer front to counter oversteer or the inner rear to counter understeer.


  • ESP strength This value sets the strength of ESP intervention. Typical values are 1 – 2.


  • ESP Min Velocity minimum vehicle velocity (in km/h) to trigger ESP intervention.


  • Clutch Axis string name of clutch axis to be used with this controller / car. Useful to implement concurrent multiplayer games.


  • Shift up Button string name of shift up button to be used with this controller / car. Useful to implement concurrent multiplayer games.


  • Shift Down Button string name of shift down button to be used with this controller / car. Useful to implement concurrent multiplayer games.


  • Start Engine Button string name of start engine button to be used with this controller / car. Useful to implement concurrent multiplayer games.
Personal tools
Car Tuning
Track Tutorials
Configuration