Class WheelSkidAudio
This Audio script plays a skid AudioClip every time the wheels are slipping
Namespace: YACC.Audio
Assembly: .dll
Syntax
public class WheelSkidAudio : MonoBehaviour
Remarks
Requires a WheelCollider component to be attached, does not rely on the CarEngineController to be present but it must need to be attached to each wheel that you want to play the skid sound on.
Fields
Name | Description |
---|---|
skidMaximumPitch | The highest pitch to play for your skid sound clip. |
skidMinimumPitch | The lowest pitch to play for your skid sound clip. |
skidSound | The sound clip to play when the wheels are slipping. |
wheelSlipThreshold | The threshold at which the wheels are considered to be slipping. |