Method SetInfo
SetInfo(float, string, float, float)
Set the current state of the vehicle.
Declaration
public void SetInfo(float kmh = 0, string gear = "", float RPM = 0, float torque = 0)
Parameters
Type | Name | Description |
---|---|---|
float | kmh | |
string | gear | |
float | RPM | |
float | torque |
Remarks
The input needs to be in metric units as it is the base unit system in Unity, mph will be automatically converted from kmh.