Difference between revisions of "love.audio.setPosition"

m (1 revision: Importing from potato (again).)
(Removed inaccurate remark about WAV files being imported as stereo and not working correctly.)
 
(7 intermediate revisions by 5 users not shown)
Line 1: Line 1:
 
+
Sets the position of the listener, which determines how sounds play.
Sets the position of the listener.
 
 
== Function ==
 
== Function ==
 
=== Synopsis ===
 
=== Synopsis ===
 
<source lang="lua">
 
<source lang="lua">
love.audio.setPosition( v )
+
love.audio.setPosition( x, y, z )
 
</source>
 
</source>
 
=== Arguments ===
 
=== Arguments ===
{{param|floatArray|v|A float array of size 3 containing [x,y,z] in that order}}
+
{{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.}}
 
=== Returns ===
 
=== Returns ===
 
Nothing.
 
Nothing.
 
== See Also ==
 
== See Also ==
 
* [[parent::love.audio]]
 
* [[parent::love.audio]]
 +
* [[Source:setPosition]]
 
[[Category:Functions]]
 
[[Category:Functions]]
 
{{#set:Description=Sets the position of the listener.}}
 
{{#set:Description=Sets the position of the listener.}}
 +
{{#set:Since=000}}
 +
== Other Languages ==
 +
{{i18n|love.audio.setPosition}}

Latest revision as of 20:57, 18 December 2018

Sets the position of the listener, which determines how sounds play.

Function

Synopsis

love.audio.setPosition( x, y, z )

Arguments

number x
The x position of the listener.
number y
The y position of the listener.
number z
The z position of the listener.

Returns

Nothing.

See Also


Other Languages