Wheel Skid Component

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 playskidSoundVolume: 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
- Configure Ground Detection with surface presets
- Assign skid clips to each surface (asphalt = high-pitched squeal, gravel = grinding, etc.)
- Enable in SoundManager
- 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).