- Home /
Custom simulation of Doppler effect
Is there a way to simulate the Doppler effect by script without using Unity’s built-in method?
Unity’s method causes shakiness in sound at high speed and when switching cameras often results in squeaks and strange noises. In order to simulate it myself, I’d need to modify the pitch of the audio source that is actually played, but not the pitch value that is exposed in the inspector because this would mess up other scripts. Is there a way to modify this pitch value like unity internally does but using my own custom method for the Doppler effect?
Comment