Vehicle Systems
Table of Contents
- Vehicle Systems
- RCCP_Stability
- Stability Aids
- Drift System
- Editable in Lite
- Locked in Lite
- RCCP_AeroDynamics
- Editable in Lite
- Locked in Lite
- RCCP_Damage
- Damage Types
- Editable in Lite
- Locked in Lite
- RCCP_FuelTank
- Editable in Lite
- RCCP_Nos
- Editable in Lite
- Locked in Lite
- RCCP_Limiter
- Editable in Lite
- RCCP_Audio
- Audio Sources
- Editable in Lite
- RCCP_Lights
- Light Types
- Editable in Lite
- Locked in Lite
- RCCP_Particles
- Editable in Lite
- RCCP_BodyTilt
- Editable in Lite
- RCCP_Lod
- Editable in Lite
- RCCPExhausts / RCCPExhaust
- Editable in Lite
- RCCP_DetachablePart
- Editable in Lite
- RCCP_Recorder
- API Access
- RCCP_TrailerAttacher
- Editable in Lite
- Next Steps
Beyond the drivetrain, RCCP vehicles include several auxiliary systems that handle stability, aerodynamics, damage, fuel, nitrous oxide, audio, lighting, particles, and visual effects. All of these systems work fully at runtime in RCCP Lite.
RCCP_Stability
The stability system provides electronic driver aids and drift control. It monitors wheel slip, vehicle rotation, and steering input to apply corrective forces.
Stability Aids
| System | Description |
|---|---|
| ABS (Anti-lock Braking System) | Prevents wheel lockup during braking by pulsing brake pressure |
| ESP (Electronic Stability Program) | Applies individual wheel brakes to correct oversteer/understeer |
| TCS (Traction Control System) | Reduces engine power when wheels spin to maintain traction |
| Steering Helper | Applies corrective steering torque to improve straight-line stability |
| Traction Helper | Applies additional lateral grip forces |
| Angular Drag Helper | Dampens vehicle rotation for more predictable handling |
Drift System
The stability component also includes a complete drift system with force-based drifting, angle limiting, friction reduction, counter-steer recovery, and momentum maintenance. The drift system is configured through behavior presets (see 12_Settings.md).
Editable in Lite
| Parameter | Description |
|---|---|
ABS | Toggle anti-lock braking |
ESP | Toggle electronic stability |
TCS | Toggle traction control |
steeringHelper | Toggle steering assistance |
tractionHelper | Toggle traction assistance |
Locked in Lite
All threshold values, intensity settings, drift parameters, angular drag settings, and force strengths.
RCCP_AeroDynamics
Handles aerodynamic forces acting on the vehicle, including downforce (which increases grip at speed), air resistance (drag), wheel resistance, and center of mass management.
Also includes an auto-reset feature that flips the vehicle right-side-up if it becomes stuck upside down.
Editable in Lite
| Parameter | Description |
|---|---|
downForce | Aerodynamic downforce applied at speed |
autoReset | Automatically flip vehicle if upside down |
Locked in Lite
Center of mass button, dynamic COM, air resistance, wheel resistance, auto-reset timer.
RCCP_Damage
A multi-aspect damage system that simulates mesh deformation, wheel damage, light breakage, and body part detachment. Damage can be saved and loaded per vehicle, and repaired at runtime.
Damage Types
| Type | Description |
|---|---|
| Mesh Deformation | Vertices of body meshes move on collision impact |
| Wheel Damage | Wheels can be damaged, deflated, or detached |
| Light Damage | Headlights and tail lights can break on impact |
| Part Damage | Body panels (bumpers, fenders, doors) can detach |
Editable in Lite
| Parameter | Description |
|---|---|
meshDeformation | Toggle mesh deformation |
wheelDamage | Toggle wheel damage |
lightDamage | Toggle light damage |
partDamage | Toggle part detachment |
| Repair Now | Button to repair all damage (play mode only) |
Locked in Lite
Damage thresholds, deformation radius, deformation multiplier, all per-component configuration, mesh/light/part lists, save/load/delete operations.
RCCP_FuelTank
Simulates fuel consumption with configurable tank capacity and consumption rates. The fuel level decreases as the engine runs and the vehicle is driven. When fuel runs out, the engine stalls.
Editable in Lite
All fuel tank parameters are locked in Lite. The fuel system works at runtime with default values.
RCCP_Nos
Nitrous oxide system that provides a temporary torque boost. NOS has a limited supply that depletes during use and regenerates over time.
Editable in Lite
| Parameter | Description |
|---|---|
amount | Current NOS amount (read at runtime) |
Locked in Lite
NOS torque multiplier, regeneration rate, maximum amount, usage rate.
RCCP_Limiter
Speed limiter that can restrict the vehicle's maximum speed on a per-gear basis. Useful for gameplay scenarios that require speed zones or governed vehicles.
Editable in Lite
All limiter parameters are locked in Lite.
RCCP_Audio
Complete vehicle audio system with separate audio sources for different engine RPM ranges, plus gear shift sounds, turbo whistle, NOS activation, crash impacts, wind noise, brake sounds, and exhaust flames.
The audio system dynamically blends between low, mid, and high RPM engine clips based on current engine RPM, creating a smooth and realistic engine sound.
Audio Sources
| Source | Description |
|---|---|
| Engine Idle | Low RPM idle loop |
| Engine Low | Low RPM driving |
| Engine Medium | Mid RPM range |
| Engine High | High RPM / full throttle |
| Engine Start | Starter motor sound |
| Gear Shift | Transmission clunk on shift |
| Turbo | Turbocharger whistle and blow-off |
| NOS | Nitrous activation hiss |
| Brake | Brake squeal under heavy braking |
| Wind | Speed-dependent wind noise |
| Crash | Collision impact sounds |
| Exhaust Flame | Exhaust backfire on deceleration |
Editable in Lite
All audio parameters are locked in Lite. Audio works at runtime with default clips and mixing.
RCCP_Lights
Manages all vehicle lighting including headlights, brake lights, reverse lights, turn indicators, and optional neon underglow and police/emergency lights.
Light Types
| Type | Description |
|---|---|
| Headlights (Low Beam) | Standard forward illumination |
| Headlights (High Beam) | Bright forward illumination |
| Brake Lights | Activate when braking |
| Reverse Lights | Activate in reverse gear |
| Left Indicator | Left turn signal |
| Right Indicator | Right turn signal |
| Hazard Lights | All indicators flash together |
Editable in Lite
Light on/off toggles are controlled via input (L for headlights, Q/E for indicators). The Lights inspector allows navigation to individual light components.
Locked in Lite
Light creation, removal, position editing, URP conversion tools.
RCCP_Particles
Manages particle effects for wheel slip (tire smoke), contact sparks, brake dust, and surface-dependent effects. The particle system reads from the ground materials database to emit the correct particle type based on the surface the wheels are on.
Editable in Lite
All particle parameters are locked in Lite. Particles work at runtime with default configurations.
RCCP_BodyTilt
Applies visual body lean/roll during cornering, giving the vehicle a more dynamic appearance during turns. This is purely visual and does not affect physics.
Editable in Lite
All body tilt parameters are locked in Lite.
RCCP_Lod
Level-of-detail system that reduces rendering complexity at distance. Automatically switches mesh detail levels based on camera distance for better performance.
Editable in Lite
All LOD parameters are locked in Lite.
RCCP_Exhausts / RCCP_Exhaust
Visual exhaust system with gas particles and optional flame effects. The exhaust flame activates during deceleration (engine braking) for a realistic visual effect.
Editable in Lite
All exhaust parameters are locked in Lite.
RCCP_DetachablePart
Individual body parts (bumpers, fenders, doors, etc.) that can detach on sufficient collision impact. Each part has configurable break force, joint strength, and detachment behavior.
Editable in Lite
Detachable parts are configured through the damage system. Toggle part damage on/off via RCCP_Damage.
RCCP_Recorder
Records vehicle movement data (position, rotation, inputs) for playback. Useful for replay systems, ghost cars, or cinematic sequences.
API Access
RCCP.StartStopRecord(vehicle); // Toggle recording
RCCP.StartStopReplay(vehicle); // Play last recording
RCCP.StopRecordReplay(vehicle); // Stop playback
RCCP_TrailerAttacher
Allows vehicles to attach and tow trailer objects. Handles the physics joint, connection/disconnection, and trailer input forwarding.
Editable in Lite
All trailer parameters are locked in Lite. The trailer system works at runtime with default values.
Next Steps
- 06_CameraSystem.md — Camera modes and setup
- 04_DrivetrainComponents.md — Engine, gearbox, and drivetrain