Updates existing anti-roll bar stiffness.
Takes vehicleHandle (vehicle from b3dCreateVehicle), barIndex (anti-roll bar index 0-based), stiffness (new stiffness value).
Returns nothing.
3D Graphics
Parameters & Returns
Parameters
vehicleHandleInt
barIndexInt
stiffnessDouble
Returns
Void
Quick Summary
Updates existing anti-roll bar stiffness.
Takes vehicleHandle (vehicle from b3dCreateVehicle), barIndex (anti-roll bar index 0-based), stiffness (new stiffness value).
Returns nothing.
Technical Exegesis...
Updates existing anti-roll bar stiffness. Takes vehicleHandle (vehicle created with b3dCreateVehicle), barIndex (0-based anti-roll bar index, 0 for first bar added, 1 for second), stiffness (new stiffness coefficient, higher = less body roll). Returns nothing. Modifies anti-roll bar settings in Jolt WheeledVehicle, allowing runtime tuning of roll resistance.
Use for dynamic suspension tuning (stiffen bars for racing mode, soften for off-road).
Updates existing anti-roll bar stiffness. Takes vehicleHandle (vehicle created with b3dCreateVehicle), barIndex (0-based anti-roll bar index, 0 for first bar added, 1 for second), stiffness (new stiffness coefficient, higher = less body roll). Returns nothing. Modifies anti-roll bar settings in Jolt WheeledVehicle, allowing runtime tuning of roll resistance.
Use for dynamic suspension tuning (stiffen bars for racing mode, soften for off-road). BarIndex matches order added (first b3dAddVehicleAntiRollBar creates barIndex 0, second creates barIndex 1).
Related: b3dAddVehicleAntiRollBar creates initial anti-roll bar, this function updates stiffness.
Example
Example.bam
; Stiffen front anti-roll bar for sport mode
b3dSetVehicleAntiRollbar(vehicle, 0, 2500.0)
; Soften for comfort mode
b3dSetVehicleAntiRollbar(vehicle, 0, 1000.0)