lovr.audio.getDopplerEffect

Returns the parameters that control the simulated doppler effect.

factor, speedOfSound = lovr.audio.getDopplerEffect()

Arguments

None

Returns

NameTypeDescription
factornumberThe doppler effect scaling factor.
speedOfSoundnumberThe speed of sound, in meters per second.

Notes

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

See also