Difference between revisions of "love.audio.getPosition"

m (Added note about sounds having to be mono for positional audio.)
 
Line 1: Line 1:
Returns the position of the listener.
+
Returns the position of the listener. Please note that positional audio only works for mono (i.e. non-stereo) sources.
 
== Function ==
 
== Function ==
 
=== Synopsis ===
 
=== Synopsis ===

Latest revision as of 21:53, 15 August 2014

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


Other Languages