Difference between revisions of "Sound.setListenerPosition"

From GiderosMobile
(removed language stuff)
Line 1: Line 1:
 
__NOTOC__
 
__NOTOC__
<languages />
+
'''Available since:''' in development<br/>
'''<translate>Available since</translate>:''' in development<br/>
+
'''Class:''' [[Sound]]<br/>
'''<translate>Class</translate>:''' [[Special:MyLanguage/Sound|Sound]]<br/>
+
 
=== <translate>Description</translate> ===
+
=== Description ===
<translate>Sets the position of the listener in a 3D environment</translate>
+
Sets the position of the listener in a 3D environment.
 
<source lang="lua">
 
<source lang="lua">
Sound.setListenerPosition(x,y,z,vx,vy,vz,dx,dy,dz,ux,uy,uz)
+
Sound.setListenerPosition(x,y,z,vx,vy,vz,dx,dy,dz,ux,uy,uz)
 
</source>
 
</source>
=== <translate>Parameters</translate> ===
+
 
'''x''': (number) <translate>X coordinate of the listener</translate> <br/>
+
=== Parameters ===
'''y''': (number) <translate>Y coordinate of the listener</translate> <br/>
+
'''x''': (number) X coordinate of the listener<br/>
'''z''': (number) <translate>z coordinate of the listener</translate> '''optional'''<br/>
+
'''y''': (number) Y coordinate of the listener<br/>
'''vx''': (number) <translate>X component of listener's velocity</translate> '''optional'''<br/>
+
'''z''': (number) z coordinate of the listener '''optional'''<br/>
'''vy''': (number) <translate>Y component of listener's velocity</translate> '''optional'''<br/>
+
'''vx''': (number) X component of listener's velocity '''optional'''<br/>
'''vz''': (number) <translate>Z component of listener's velocity</translate> '''optional'''<br/>
+
'''vy''': (number) Y component of listener's velocity '''optional'''<br/>
'''dx''': (number) <translate>X component of the direction the listener is facing</translate> '''optional'''<br/>
+
'''vz''': (number) Z component of listener's velocity '''optional'''<br/>
'''dy''': (number) <translate>Y component of the direction the listener is facing</translate> '''optional'''<br/>
+
'''dx''': (number) X component of the direction the listener is facing '''optional'''<br/>
'''dz''': (number) <translate>Z component of the direction the listener is facing</translate> '''optional'''<br/>
+
'''dy''': (number) Y component of the direction the listener is facing '''optional'''<br/>
'''ux''': (number) <translate>X component of up direction relative to the listener</translate> '''optional'''<br/>
+
'''dz''': (number) Z component of the direction the listener is facing '''optional'''<br/>
'''uy''': (number) <translate>Y component of up direction relative to the listener</translate> '''optional'''<br/>
+
'''ux''': (number) X component of up direction relative to the listener '''optional'''<br/>
'''uz''': (number) <translate>Z component of up direction relative to the listener</translate> '''optional'''<br/>
+
'''uy''': (number) Y component of up direction relative to the listener '''optional'''<br/>
 +
'''uz''': (number) Z component of up direction relative to the listener '''optional'''<br/>
  
 
{{Sound}}
 
{{Sound}}

Revision as of 06:39, 29 May 2021

Available since: in development
Class: Sound

Description

Sets the position of the listener in a 3D environment.

Sound.setListenerPosition(x,y,z,vx,vy,vz,dx,dy,dz,ux,uy,uz)

Parameters

x: (number) X coordinate of the listener
y: (number) Y coordinate of the listener
z: (number) z coordinate of the listener optional
vx: (number) X component of listener's velocity optional
vy: (number) Y component of listener's velocity optional
vz: (number) Z component of listener's velocity optional
dx: (number) X component of the direction the listener is facing optional
dy: (number) Y component of the direction the listener is facing optional
dz: (number) Z component of the direction the listener is facing optional
ux: (number) X component of up direction relative to the listener optional
uy: (number) Y component of up direction relative to the listener optional
uz: (number) Z component of up direction relative to the listener optional