SetSoundListenerOrientation
From OxeyeWiki
|
audio.setSoundListenerOrientation(forwardVectorX, forwardVectorY, forwardVectorZ, upVectorX, upVectorY, upVectorZ) | ||
|
This sets the listeners orientation in 3d space. For 2d games, the audio.setSoundListenerOrientation(0,0,1,0,-1,0) is recommended. | ||
| Parameter | Expected Type | Description |
| forwardVectorX | A number | X component of forward vector. |
| forwardVectorY | A number | Y component of forward vector. |
| forwardVectorZ | A number | Z component of forward vector. |
| upVectorX | A number | X component of up vector. |
| upVectorY | A number | Y component of up vector. |
| upVectorZ | A number | > component of up vector. |
| Returns | ||
|
Returns nothing. | ||
| Daisymoon Audio Lib |
|---|
Example
-- growing Z is going deeper into the screen, shrinking Y is going upwards on the screen. audio.setSoundListenerOrientation(0,0,1,0,-1,0)