Difference between revisions of "Sound.setListenerPosition"
Line 8: | Line 8: | ||
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> | ||
+ | |||
+ | |||
+ | '''Note''': please notice the '''dot''' instead of the column Sound'''.'''setListenerPosition(...) | ||
=== Parameters === | === Parameters === |
Revision as of 01:50, 6 September 2022
Available since: Gideros 2016.10
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)
Note: please notice the dot instead of the column Sound.setListenerPosition(...)
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