love.audio.getPosition

Returns the position of the listener. Please note that positional audio only works for mono (i.e. non-stereo) sources.

Function

Synopsis

x, y, z = love.audio.getPosition( )

Arguments

None.

Returns

number x
The X position of the listener.
number y
The Y position of the listener.
number z
The Z position of the listener.

See Also


© 2006–2020 LÖVE Development Team
Licensed under the GNU Free Documentation License, Version 1.3.
https://love2d.org/wiki/love.audio.getPosition