Property | Type | Description | |
---|---|---|---|
brakePos | float | ||
brakingPower | float | ||
cDrag | float | ||
cRoll | float | ||
carMass | float | ||
centerOfMass | Transform | ||
currentGear | int | ||
currentSpeed | float | ||
differentialRatio | float | ||
driftAssist | float | ||
engineTorque | float | ||
gearRatio | float | ||
gearsRatio | float[] | ||
handBrake | bool | ||
maxGears | int | ||
maxSpeed | float | ||
maxTorque | float | ||
maximumSpeed | int | ||
peakTorque | float | ||
playerNumber | int | ||
rpm | float | ||
rpmMax | float | ||
rpmMin | float | ||
steeringAngle | float | ||
steeringSensitityCurve | AnimationCurve | ||
steeringSensitivity | float | ||
throttlePos | float | ||
torqueRPMCurve | AnimationCurve[] | ||
virtualRPM | float | ||
wheels | WheelController[] |
Method | Description | |
---|---|---|
FixedUpdate ( ) : void | ||
GearsShift ( ) : void |
Shifts gear up or down according to speed.
|
|
IsFlying ( ) : bool | ||
OnCollisionEnter ( Collision other ) : void |
Collission handler
|
|
OnDrawGizmos ( ) : void | ||
OnGUI ( ) : void | ||
SetEnableMotion ( bool enable ) : void | ||
Start ( ) : void | ||
Update ( ) : void |
Method | Description | |
---|---|---|
GetMaxTorque ( float currentRPM ) : float |
Sample the RPM vs torque engine curve to get the torque for the current RPM value
|
public OnCollisionEnter ( Collision other ) : void | ||
other | Collision | |
return | void |
public SetEnableMotion ( bool enable ) : void | ||
enable | bool | |
return | void |
public AnimationCurve steeringSensitityCurve | ||
return | AnimationCurve |