b3dSetVehicleTransmission

Configures vehicle transmission clutch strength affecting power transfer. Takes vehicleHandle (vehicle from b3dCreateVehicle), clutchStrength (0-1, how strongly engine couples to wheels). Returns nothing.

3D Graphics

Parameters & Returns

Parameters

vehicleHandle Int
clutchStrength Double

Returns

Void

Quick Summary

Configures vehicle transmission clutch strength affecting power transfer. Takes vehicleHandle (vehicle from b3dCreateVehicle), clutchStrength (0-1, how strongly engine couples to wheels). Returns nothing.

Technical Exegesis...

Configures vehicle transmission clutch strength affecting power transfer from engine to wheels. Takes vehicleHandle (vehicle created with b3dCreateVehicle), clutchStrength (0 to 1 where 0=no coupling/slipping, 0.5=moderate coupling, 1=strong coupling/locked). Returns nothing. Sets Jolt WheeledVehicle transmission parameters affecting how engine torque transfers to wheels and how quickly engine RPM matches wheel speed.

This function configures transmission.

Example

Example.bam
; Standard car with balanced transmission
vehicle = b3dCreateVehicle(carMesh, 1500.0, 0.3, 0.5, 2.0, 0.6, 0.0)
; ... add wheels ...
b3dSetVehicleEngine(vehicle, 400.0, 1000.0, 6000.0)
b3dSetVehicleTransmission(vehicle, 0.5)  ; Balanced clutch

; Sports car with strong clutch (responsive)
b3dSetVehicleTransmission(sportsCar, 0.75)

; Beginner car with weak clutch (forgiving)
b3dSetVehicleTransmission(beginnerCar, 0.35)

; Race car with very strong clutch (maximum power)
b3dSetVehicleTransmission(raceCar, 0.9)

; Electric vehicle with locked transmission (no slip)
b3dSetVehicleTransmission(electricCar, 1.0)