lovr.audio.getVelocity

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

x, y, z = lovr.audio.getVelocity()

Arguments

None

Returns

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

Notes

The audio listener does not move based on its velocity.

See also