Class Gear
This class is used to create a gear for a gearbox. It is used to store the ratio of the gear, the maximum speed of the car in this gear, the shift up speed and the shift up RPM.
Namespace: YACC
Assembly: .dll
Syntax
[Serializable]
public class Gear
Constructors
| Name | Description |
|---|---|
| Gear(float) | Initializes a new gear. |
Fields
| Name | Description |
|---|---|
| maximumSpeed | Maximum theorical speed of the car in this gear |
| ratio | The ratio for this gear |
| shiftUpRPM | The RPM threshold at which the car will shift up to the next gear |
| shiftUpSpeed | The speed at which the car will shift up to the next gear |