Class WheelSuspensionAudio
This Audio script plays a random AudioClip from the defined array of clips every time when a sudden force is applied to the wheel collider. This is useful for playing suspension compression sounds.
Namespace: YACC.Audio
Assembly: .dll
Syntax
public class WheelSuspensionAudio : 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 suspension sound on.
Fields
Name | Description |
---|---|
minForce | The minimum actuation force required to play the suspension sound. |
suspensionSounds | The sound clips to play when the suspensions are compressing. |