8.2 KiB
Customize vehicle suspension
This tutorial covers the basics of the suspension system for CARLA vehicles, and how are these implemented for the different vehicles available. Use this information to access the suspension parameterization of a vehicle in Unreal Engine, and customize it at will.
Basics of the suspension system
The suspension system of a vehicle is defined by the wheels of said vehicle. Each wheel has an independent blueprint with some parameterization, which includes the suspension system.
These blueprints can be found in Content/Carla/Blueprints/Vehicles/<vehicle_name>
. They are named such as: BP_<vehicle_name>_<F/R><R/L>W
.
F
orR
is used for front or back wheels correspondingly.R
orL
is used for right or left wheels correspondingly.
BP_AudiA2_FLW
.shape_radius
for the wheel to rest over the road, neither hovering nor inside of it.
Inside the blueprint, there is a section with some parameterization regarding the suspension of the wheel. Here are their definitions as described in Unreal Engine.
Suspension Force Offset
— Vertical offset from where suspension forces are applied (along Z axis).Suspension Max Raise
— How far the wheel can go above the resting position.Suspension Max Drop
— How far the wheel can drop below the resting position.Suspension Natural Frequency
— Oscillation frequency of the suspension. Standard cars have values between 5 and 10.Suspension Damping Ratio
— The rate at which energy is dissipated from the spring. Standard cars have values between 0.8 and 1.2. Values < 1 are more sluggish, values > 1 are more twitchy.Sweep Type
— Wether wheel suspension considers simple, complex or both.
!!! Note By default, all the wheels of a vehicle have the same parameterization in CARLA. The following explanations will be covered per vehicle, instead of per wheel.
Suspension groups
According to their system suspension, vehicles in CARLA can be classified in five groups. All the vehicles in a group have the same parameterization, as they are expected to have a similar behaviour on the road. The suspension of a vehicle can be modified at will, and is no subject to these five groups. However understanding these, and observing their behaviour in the simulation can be of great use to define a custom suspension.
The five groups are: coupe, Off-road, Truck, Urban, and Van. In closer observation, the parameterization of these groups follows a specific pattern.
Stiff suspension | coupe | Urban | Van | Off-road | Truck | Soft suspension |
When moving from a soft to a stiff suspension, there are some clear tendencies in their parameterization.
- Decrease of
Suspension Max Raise
andSuspension Max Drop
— Stiff vehicles are meant to drive over plane roads with no bumps. For the sake of aerodynamics, the chassis is not supposed to move greatly, but remain constantly close to the ground. - Increase of
Suspension Damping Ratio
— The absortion of the bouncing by the dampers is greater for stiff vehicles.
Coupe
Vehicles with the stiffest suspension.
Parameterization | Vehicles |
---|---|
Suspension Force Offset — 0.0 Suspension Max Raise — 7.5 Suspension Max Drop — 7.5 Suspension Natural Frequency — 10.0 Suspension Damping Ratio — 1.0 Sweep Type — SimpleAndComplex |
vehicle.seat.leon vehicle.audi.a2 vehicle.audi.tt vehicle.tesla.model3 vehicle.lincoln.mkz2017 vehicle.mercedes-benz.coupe |
Off-road
Vehicles with a soft suspension.
Parameterization | Vehicles |
---|---|
Suspension Force Offset — 0.0 Suspension Max Raise — 15.0 Suspension Max Drop — 15.0 Suspension Natural Frequency — 7.0 Suspension Damping Ratio — 0.5 Sweep Type — SimpleAndComplex |
vehicle.audi.etron vehicle.nissan.patrol vehicle.tesla.cybertruck vehicle.jeep.wrangler_rubicon |
Truck
Vehicles with the softest suspension.
Parameterization | Vehicles |
---|---|
Suspension Force Offset — 0.0 Suspension Max Raise — 17.0 Suspension Max Drop — 17.0 Suspension Natural Frequency — 6.0 Suspension Damping Ratio — 0.4 Sweep Type — SimpleAndComplex |
vehicle.carlamotors.carlacola |
Urban
Vehicles with a soft suspension.
Parameterization | Vehicles |
---|---|
Suspension Force Offset — 0.0 Suspension Max Raise — 8.0 Suspension Max Drop — 8.0 Suspension Natural Frequency — 9.0 Suspension Damping Ratio — 0.8 Sweep Type — SimpleAndComplex |
vehicle.nissan.micra vehicle.mustang.mustang vehicle.mini.cooperst vehicle.citroen.c3 vehicle.chevrolet.impala vehicle.toyota.prius vehicle.dodge_charger.police vehicle.bmw.grandtourer |
Van
Vehicles with a middle-ground suspension.
Parameterization | Vehicles |
---|---|
Suspension Force Offset — 0.0 Suspension Max Raise — 9.0 Suspension Max Drop — 9.0 Suspension Natural Frequency — 9.0 Suspension Damping Ratio — 0.9 Sweep Type — SimpleAndComplex |
vehicle.volkswagen.t2 |
Use the forum to post any doubts, issues or suggestions regarding this topic.
Here are some advised readings after this one.