Difference between revisions of "love.audio.getOrientation"

(Corrected return parameters)
Line 3: Line 3:
 
=== Synopsis ===
 
=== Synopsis ===
 
<source lang="lua">
 
<source lang="lua">
v = love.audio.getOrientation( )
+
fx, fy, fz, ux, uy, uz = love.audio.getOrientation( )
 
</source>
 
</source>
 
=== Arguments ===
 
=== Arguments ===
 
None.
 
None.
 
=== Returns ===
 
=== Returns ===
{{param|floatArray|v|A float array of size 6 containing [x,y,z] for the forward vector, followed by [x,y,z] for the up vector.}}
+
{{param|number|fx, fy, fz|Forward vector of the listener orientation.}}
 +
{{param|number|ux, uy, uz|Up vector of the listener orientation.}}
 
== See Also ==
 
== See Also ==
 
* [[parent::love.audio]]
 
* [[parent::love.audio]]

Revision as of 18:59, 1 February 2011

Returns the orientation of the listener.

Function

Synopsis

fx, fy, fz, ux, uy, uz = love.audio.getOrientation( )

Arguments

None.

Returns

number fx, fy, fz
Forward vector of the listener orientation.
number ux, uy, uz
Up vector of the listener orientation.

See Also

Other Languages