Riferimento API di nanos world Documentazione italiana non ufficiale
Documentazione ufficiale
Funzione Server Moderato

VehicleWheeled:SetAerodynamicsSetup

Configures the Vehicle Aerodynamics Settings

Non ancora tradotto

Sintassi

Lua
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))

Parametri

Nome Tipo Predefinito Descrizione
mass facoltativo integer 1500 Mass of the vehicle chassis
drag_coefficient facoltativo float 0.3 Force resisting forward motion at speed
vehicle_chassis_width facoltativo integer 180 Chassis width used for drag force computation (cm)
vehicle_chassis_height facoltativo integer 140 Chassis height used for drag force computation (cm)
vehicle_downforce_coefficient facoltativo float 0.3 Force pressing vehicle into ground at speed
center_of_mass_override facoltativo 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