User Tools


Differences

This shows you the differences between two versions of the page.

Link to this comparison view

NWH:VehiclePhysics2:Sound:index [2020/06/19 15:30] (current)
Line 1: Line 1:
 +====== Sound ======
 +
 +Sound system in NVP2 consists of ''​SoundManager''​ and multiple ''​SoundComponent''​s. Disabling ''​SoundManager''​ also disables all the ''​SoundComponent''​s.\\
 +  * ''​SoundComponent''​ and ''​SoundManager''​ are ''​VehicleComponent''​s. Check [[NWH:​VehiclePhysics2:​VehicleComponent|VehicleComponent]] page for more info.
 +  * Each ''​SoundComponent''​ (type of ''​Vehicle Component''​) is responsible for one sound, e.g. ''​EngineRunningComponent''​ or ''​EngineStartingComponent''​.
 +  * ''​AudioSource''​s are not added manually but are instead generated by the script when scene is started. Some ''​SoundComponent''​s can have more than one ''​AudioSource''​ - e.g. wheel related ''​SoundComponent''​s have one ''​AudioSource''​ for each wheel.
 +  * Each field affects only the vehicle to which the script is attached. To modify audio output for all the vehicles VehicleAudioMixer (''​VehicleAudioMixer.mixer''​) can be used.
 +
 +== Requirements ==
 +  * ''​Mixer''​ field must have ''​AudioMixer''​ assigned. By default ''​VehicleAudioMixer''​ will be used.
 +
 +====== SoundComponent ======
 +{{page>​[NWH:​VehiclePhysics2:​Sound:​SoundComponent]}}
 +
 +====== SoundManager ======
 +{{page>​[NWH:​VehiclePhysics2:​Sound:​SoundManager]}}
 +
 +====== Available Sound Components ======
 +==== Blinker Component ====
 +{{page>​[NWH:​VehiclePhysics2:​Sound:​SoundComponents:​BlinkerComponent]}}
 +
 +==== Brake Hiss ====
 +{{page>​[NWH:​VehiclePhysics2:​Sound:​SoundComponents:​BrakeHissComponent]}}
 +
 +==== Crash ====
 +{{page>​[NWH:​VehiclePhysics2:​Sound:​SoundComponents:​CrashComponent]}}
 +
 +==== Engine Fan ====
 +{{page>​[NWH:​VehiclePhysics2:​Sound:​SoundComponents:​EngineFanComponent]}}
 +
 +==== Engine Running ====
 +{{page>​[NWH:​VehiclePhysics2:​Sound:​SoundComponents:​EngineRunningComponent]}}
 +
 +==== Engine Start ====
 +{{page>​[NWH:​VehiclePhysics2:​Sound:​SoundComponents:​EngineStartComponent]}}
 +
 +==== Gear Change ====
 +{{page>​[NWH:​VehiclePhysics2:​Sound:​SoundComponents:​GearChangeComponent]}}
 +
 +==== Horn ====
 +{{page>​[NWH:​VehiclePhysics2:​Sound:​SoundComponents:​HornComponent]}}
 +
 +==== Reverse Beep ====
 +{{page>​[NWH:​VehiclePhysics2:​Sound:​SoundComponents:​ReverseBeepComponent]}}
 +
 +==== Skid ====
 +{{page>​[NWH:​VehiclePhysics2:​Sound:​SoundComponents:​SkidComponent]}}
 +
 +==== Surface ====
 +{{page>​[NWH:​VehiclePhysics2:​Sound:​SoundComponents:​SurfaceComponent]}}
 +
 +==== Suspension Bump ====
 +{{page>​[NWH:​VehiclePhysics2:​Sound:​SoundComponents:​SuspensionBumpComponent]}}
 +
 +==== Transmission Whine ====
 +{{page>​[NWH:​VehiclePhysics2:​Sound:​SoundComponents:​TransmissionWhineComponent]}}
 +
 +==== Turbo Flutter ====
 +{{page>​[NWH:​VehiclePhysics2:​Sound:​SoundComponents:​TurboFlutterComponent]}}
 +
 +==== Turbo Whistle ====
 +{{page>​[NWH:​VehiclePhysics2:​Sound:​SoundComponents:​TurboWhistleComponent]}}
 +
 +==== Wheel Skid ====
 +{{page>​[NWH:​VehiclePhysics2:​Sound:​SoundComponents:​WheelSkidComponent]}}
 +
 +==== Wheel Tire Noise ====
 +{{page>​[NWH:​VehiclePhysics2:​Sound:​SoundComponents:​WheelTireNoiseComponent]}}
 +