Difference between revisions of "Sound.setListenerPosition"

From GiderosMobile
(Created page with "__NOTOC__ '''Available since:''' in development<br/> === Description === Sets the position of the listener in a 3D environment <source lang="lua"> = Sound.setListenerPosition(...")
 
Line 4: Line 4:
 
Sets the position of the listener in a 3D environment
 
Sets the position of the listener in a 3D environment
 
<source lang="lua">
 
<source lang="lua">
= Sound.setListenerPosition(xyzvxvyvzdxdydzuxuyuz,)
+
Sound.setListenerPosition(x,y,z,vx,vy,vz,dx,dy,dz,ux,uy,uz)
 
</source>
 
</source>
'''x:''' (number) X coordinate of the listener ''''''<br/>
+
'''x''': (number) X coordinate of the listener ''''''<br/>
'''y:''' (number) Y coordinate of the listener ''''''<br/>
+
'''y''': (number) Y coordinate of the listener ''''''<br/>
'''z:''' (number) z coordinate of the listener '''optional'''<br/>
+
'''z''': (number) z coordinate of the listener '''optional'''<br/>
'''vx:''' (number) X component of listener's velocity '''optional'''<br/>
+
'''vx''': (number) X component of listener's velocity '''optional'''<br/>
'''vy:''' (number) Y component of listener's velocity '''optional'''<br/>
+
'''vy''': (number) Y component of listener's velocity '''optional'''<br/>
'''vz:''' (number) Z component of listener's velocity '''optional'''<br/>
+
'''vz''': (number) Z component of listener's velocity '''optional'''<br/>
'''dx:''' (number) X component of the direction the listener is facing '''optional'''<br/>
+
'''dx''': (number) X component of the direction the listener is facing '''optional'''<br/>
'''dy:''' (number) Y component of the direction the listener is facing '''optional'''<br/>
+
'''dy''': (number) Y component of the direction the listener is facing '''optional'''<br/>
'''dz:''' (number) Z component of the direction the listener is facing '''optional'''<br/>
+
'''dz''': (number) Z component of the direction the listener is facing '''optional'''<br/>
'''ux:''' (number) X component of up direction relative to the listener '''optional'''<br/>
+
'''ux''': (number) X component of up direction relative to the listener '''optional'''<br/>
'''uy:''' (number) Y component of up direction relative to the listener '''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/>
+
'''uz''': (number) Z component of up direction relative to the listener '''optional'''<br/>

Revision as of 10:21, 23 August 2018

Available since: in development

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)

'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