Function
Moderate
VehicleWheeled:SetAerodynamicsSetup
Configures the Vehicle Aerodynamics Settings
Syntax
my_vehicle_wheeled:SetAerodynamicsSetup(mass = 1500, drag_coefficient = 0.3, vehicle_chassis_width = 180, vehicle_chassis_height = 140, vehicle_downforce_coefficient = 0.3, center_of_mass_override = Vector(0, 0, 50))
Parameters
| Name | Type | Default | Description |
|---|---|---|---|
mass
optional
|
integer | 1500 |
Mass of the vehicle chassis |
drag_coefficient
optional
|
float | 0.3 |
Force resisting forward motion at speed |
vehicle_chassis_width
optional
|
integer | 180 |
Chassis width used for drag force computation (cm) |
vehicle_chassis_height
optional
|
integer | 140 |
Chassis height used for drag force computation (cm) |
vehicle_downforce_coefficient
optional
|
float | 0.3 |
Force pressing vehicle into ground at speed |
center_of_mass_override
optional
|
Vector | Vector(0, 0, 50) |
Overrides the center of mass. Good for curves stabilization. Ideally the Z should be the same as the wheels radius |