Difference between revisions of "love.audio.getPosition"
m (Added note about sounds having to be mono for positional audio.) |
|||
(3 intermediate revisions by 2 users not shown) | |||
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 === | ||
<source lang="lua"> | <source lang="lua"> | ||
− | + | x, y, z = love.audio.getPosition( ) | |
</source> | </source> | ||
=== Arguments === | === Arguments === | ||
None. | None. | ||
=== Returns === | === Returns === | ||
− | {{param| | + | {{param|number|x|The X position of the listener.}} |
+ | {{param|number|y|The Y position of the listener.}} | ||
+ | {{param|number|z|The Z position of the listener.}} | ||
== See Also == | == See Also == | ||
* [[parent::love.audio]] | * [[parent::love.audio]] | ||
[[Category:Functions]] | [[Category:Functions]] | ||
{{#set:Description=Returns the position of the listener.}} | {{#set:Description=Returns the position of the listener.}} | ||
+ | {{#set:Since=000}} | ||
== Other Languages == | == Other Languages == | ||
{{i18n|love.audio.getPosition}} | {{i18n|love.audio.getPosition}} |
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
Dansk –
Deutsch –
English –
Español –
Français –
Indonesia –
Italiano –
Lietuviškai –
Magyar –
Nederlands –
Polski –
Português –
Română –
Slovenský –
Suomi –
Svenska –
Türkçe –
Česky –
Ελληνικά –
Български –
Русский –
Српски –
Українська –
עברית –
ไทย –
日本語 –
正體中文 –
简体中文 –
Tiếng Việt –
한국어
More info