Settings and Configuration

Table of Contents

Overview

RCCP's global configuration is stored in RCCP_Settings, a ScriptableObject asset located at:


Assets/Realistic Car Controller Pro/Resources/RCCP_Settings.asset

This asset is loaded at runtime via Resources.Load("RCCP_Settings") and accessed as a singleton through RCCP_Settings.Instance.

Open it in the editor via Tools > BoneCracker Games > RCCP > RCCP Settings.

Behavior Presets

Behavior presets are the primary tuning mechanism in RCCP. Each preset defines a complete driving feel — from steering response to stability aid strengths to drift behavior. You can have multiple presets and switch between them at runtime.

What a Behavior Preset Controls

CategoryParameters
Stability AidsABS, ESP, TCS, steering helper, traction helper, angular drag helper toggles and strengths
Drift SystemDrift mode, angle limits, yaw torque, forward/sideways forces, min speed, friction settings, recovery
SteeringSteering curve (speed-based), sensitivity, counter-steering, min/max steering limits
DifferentialDefault differential type (Open, Limited, Locked, Direct)
Wheel FrictionForward and sideways friction curves for front and rear tires (extremum/asymptote values)
GearboxShift thresholds, shift delays, gear change timing
OtherAnti-roll bar minimums, angular drag values

Switching Behaviors at Runtime


// By name
RCCP.SetBehavior("Drift");
RCCP.SetBehavior("Race");

// By index
RCCP.SetBehavior(0);

// Query
int index = RCCP.GetBehaviorIndexByName("Sport");
RCCP_Settings.BehaviorType behavior = RCCP.GetBehaviorByName("Normal");

Per-Vehicle Behavior Override

Individual vehicles can ignore the global behavior preset:


vehicle.ineffectiveBehavior = true;  // Ignore global preset
vehicle.useCustomBehavior = true;    // Use per-vehicle preset
vehicle.customBehaviorIndex = 2;     // Which preset to use

Global Physics Settings

SettingDescription
multithreadingEnable async processing where supported
useFixedWheelCollidersPhysics optimization for wheel colliders
overrideFPS / maxFPSLimit maximum framerate (up to 120)
overrideFixedTimeStep / fixedTimeStepOverride Unity's physics timestep

Auto-Reset

SettingDescription
autoResetAutomatically flip the vehicle right-side-up if it rolls over

This can also be toggled per-vehicle via the RCCP_AeroDynamics component.

Input Settings

SettingDescription
mobileControllerEnabledEnable mobile on-screen controls
mobileControllerMobile input mode: TouchScreen, Gyro, SteeringWheel, Joystick
gyroSensitivitySensitivity of gyroscope steering
autoSaveLoadInputRebindAutomatically save/load custom key bindings

Display Settings

SettingDescription
useMPHDisplay speed in miles per hour instead of km/h
useTelemetryShow telemetry overlay during play mode
useInputDebuggerShow input visualization overlay

Layer Configuration

RCCP uses specific physics layers for collision detection between vehicles, wheels, detachable parts, and world objects:

SettingPurpose
RCCPLayerMain vehicle body layer
RCCPWheelColliderLayerWheel collider physics layer
RCCPDetachablePartLayerDetachable body parts (bumpers, doors)
RCCPPropLayerScene props
RCCPObstacleLayerAI obstacles

These layer names are configured in the settings asset and applied automatically at runtime.

Resource Prefab References

RCCP Settings holds references to all prefabs that get instantiated at runtime:

Camera Prefabs

SettingPrefab
RCCPMainCameraMain camera with RCCP_Camera
RCCPHoodCameraFirst-person camera mount
RCCPWheelCameraWheel-level camera mount
RCCPCinematicCameraCinematic path camera
RCCPFixedCameraFixed trackside camera

UI and System Prefabs

SettingPrefab
RCCPCanvasMain UI canvas
RCCPTelemetryTelemetry display
skidmarksManagerTire marks renderer
exhaustGasExhaust gas particle
wheelBlurWheel motion blur

Audio Clips

The settings asset also references default audio clips for engine sounds (idle, low/mid/high RPM, starter), gear shift, turbo, NOS, brake squeal, wind noise, crash impact, exhaust flame, and horn.

Particle Prefabs

Contact particles, scratch particles, and wheel sparkle effects are referenced here.

Ground Materials

Surface friction and audio are configured in RCCP_GroundMaterials, another ScriptableObject loaded from Resources. It defines per-surface settings:

Access via Tools > BoneCracker Games > RCCP > Ground Physics.

Changeable Wheels

RCCP_ChangableWheels defines the registry of available wheel models for the customization system. Each entry includes the wheel mesh, material, and sizing data.

Access via Tools > BoneCracker Games > RCCP > Wheel Configurations.

Other Configuration Assets

AssetPurpose
RCCP_RecordsSaved recording/replay clips
RCCP_DemoVehiclesDemo vehicle prefab registry
RCCP_DemoScenesDemo scene references
RCCP_CustomizationSetupsPreset customization loadouts

Next Steps