AirGenCar
class provides an interface to the underlying vehicle simulation.
CarControls
object and set properties to control the car’s movement:
CarControls
object supports several parameters:
Parameter | Range | Description |
---|---|---|
throttle | 0 to 1 | Controls acceleration (0 = no throttle, 1 = full throttle) |
steering | -1 to 1 | Controls turning (-1 = full left, 0 = straight, 1 = full right) |
brake | 0 to 1 | Controls braking (0 = no brake, 1 = full brake) |
handbrake | boolean | Applies the handbrake when set to True |
is_manual_gear | boolean | Enables manual gear selection when True |
manual_gear | integer | Gear selection (-1 = reverse, 0 = neutral, 1+ = forward gears) |