Difference between revisions of "love.audio.getPosition"

(Corrected return parameters)
Line 3: Line 3:
 
=== Synopsis ===
 
=== Synopsis ===
 
<source lang="lua">
 
<source lang="lua">
v = love.audio.getPosition( )
+
x, y, z = love.audio.getPosition( )
 
</source>
 
</source>
 
=== Arguments ===
 
=== Arguments ===
 
None.
 
None.
 
=== Returns ===
 
=== Returns ===
{{param|floatArray|v|A float array of size 3 containing [x,y,z] in that order}}
+
{{param|number|x|The listener position along the x-axis.}}
 +
{{param|number|y|The listener position along the y-axis.}}
 +
{{param|number|z|The listener position along the z-axis.}}
 
== See Also ==
 
== See Also ==
 
* [[parent::love.audio]]
 
* [[parent::love.audio]]

Revision as of 19:17, 1 February 2011

Returns the position of the listener.

Function

Synopsis

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

Arguments

None.

Returns

number x
The listener position along the x-axis.
number y
The listener position along the y-axis.
number z
The listener position along the z-axis.

See Also

Other Languages