lovr.audio.setVelocity

Sets the velocity of the audio listener, in meters per second. This affects the doppler effect.

lovr.audio.setVelocity(x, y, z)

Arguments

NameTypeDescription
xnumberThe x velocity.
ynumberThe y velocity.
znumberThe z velocity.

Returns

Nothing

Notes

The audio listener does not move based on its velocity.

See also