lovr.audio.setDopplerEffect

Sets the parameters that control the simulated doppler effect: The effect intensity and the speed of sound.

lovr.audio.setDopplerEffect(factor, speedOfSound)

Arguments

NameTypeDefaultDescription
factornumber1.0The doppler effect scaling factor.
speedOfSoundnumber343.29The speed of sound, in meters per second.

Returns

Nothing

Notes

The default factor is 1.0 and the default speed of sound is 343.29.

See also