Skip to main content

VehiclePhysics

24 tools in this family (folder Editor/Tools/VehiclePhysics/ in the bridge package). Effect: writes changes the project or the scene, read-only does not, destructive deletes or overwrites and the client asks before running it.

ToolEffectDescription
vehicle_apply_damagewritesInflict damage on the vehicle. Reduces damage HP by
vehicle_apply_presetwritesApply one of the eight built-in vehicle presets (Sedan, SportsCar, MuscleCar,
vehicle_configure_aerowritesSet aerodynamic parameters: drag multiplier, downforce at the front axle
vehicle_configure_brakeswritesSet brake parameters: max brake torque (front & rear in Nm), brake balance
vehicle_configure_damagewritesSet damage parameters: max vehicle HP, damage multiplier, deformable-mesh flag,
vehicle_configure_differentialwritesSet drivetrain layout (FWD, RWD, AWD, AWDLockable), differential mechanical kind
vehicle_configure_enginewritesSet engine parameters: peak torque (Nm), idle RPM, max RPM, redline RPM,
vehicle_configure_noswritesSet or enable NOS (nitrous-oxide boost): max tank capacity (sec), recharge rate
vehicle_configure_steeringwritesSet steering parameters: max steering angle, slew rate (deg/sec), Ackermann
vehicle_configure_transmissionwritesSet transmission parameters: shift mode (Automatic, Manual, Sequential), gear
vehicle_configure_wheelswritesSet wheel radius, mass, max steer angle, suspension distance, spring rate, damper
vehicle_create_hudwritesGenerate a runtime HUD Canvas with a speedometer + RPM dial + gear text + NOS
vehicle_get_telemetryread-onlyReturn the live telemetry of the vehicle: throttle / brake / steer / handbrake
vehicle_load_setupwritesLoad a previously-exported vehicle configuration onto an existing vehicle.
vehicle_repairwritesRepair the vehicle: reset damage HP to max, restart the engine, refill NOS, and
vehicle_save_setupread-onlyExport the vehicle's configuration as a JSON string (profile, engine,
vehicle_set_input_modewritesSelect the input source for the vehicle: Keyboard, Gamepad, MobileTouch, or
vehicle_setupwritesSet up a complete vehicle on a GameObject. Auto-detects four child wheels named
vehicle_setup_ai_driverwritesAdd or configure the AIDriver component. Applies a personality profile
vehicle_setup_audiowritesAdd or configure the VehicleAudio component. Wires four engine-RPM-pitched audio
vehicle_setup_camerawritesAdd or configure the VehicleCamera component. Sets the active mode (Chase, Hood,
vehicle_setup_surface_detectionwritesConfigure surface-type detection: a list of (Tag or Layer) → SurfaceType, with
vehicle_setup_vfxwritesAdd or configure the VehicleVFX component. Wires exhaust ParticleSystems,
vehicle_validate_setupread-onlyRun a sanity check on the vehicle: mass in plausible range, center-of-mass