NWH Vehicle Physics 2
Search Results for

    Show / Hide Table of Contents

    Wheel Skid Component

    WheelSkidComponent Inspector

    Tire skid/squeal sound during hard braking and drifting. Plays when wheel slip exceeds threshold.

    Implementation

    Gets audio clip and settings from SurfacePreset based on dominant surface. Volume scales with normalized wheel slip and speed coefficient. Checks all wheels and uses highest volume value.

    Volume calculation: slipPercent * skidSoundVolume * speedCoeff

    • slipPercent: Combined normalized lateral + longitudinal slip (0-1)
    • speedCoeff: Min(1, vehicleSpeed * 0.33 + wheelAngularVelocity * 0.05)

    Triggers when:

    • isSkiddingLaterally (drifting, cornering)
    • isSkiddingLongitudinally (hard braking, burnout)
    • Wheel grounded

    Configuration

    SurfacePreset (per surface type):

    • skidSoundClip: Audio clip to play
    • skidSoundVolume: Volume multiplier (default 0.3)
    • skidSoundPitch: Pitch multiplier (default 1.0)
    • playSkidSounds: Enable/disable flag

    Component: Surface Noise Mixer Group, Priority 60, Looping, single AudioSource

    Setup

    1. Configure Ground Detection with surface presets
    2. Assign skid clips to each surface (asphalt = high-pitched squeal, gravel = grinding, etc.)
    3. Enable in SoundManager
    4. Test with drifting and hard braking

    Troubleshooting

    No sound: Check Ground Detection has dominant surface, verify skidSoundClip assigned, confirm playSkidSounds enabled in SurfacePreset

    Volume too low/high: Adjust skidSoundVolume in SurfacePreset (default 0.3)

    Wrong surface sound: Verify Ground Detection identifies correct dominant surface

    Note: Uses single AudioSource for all wheels with volume smoothing (10x delta time lerp).

    In this article
    Back to top Copyright © NWH - Vehicle Physics, Aerodynamics, Dynamic Water Physics