audio.orientation
orientation(sound_name: string, x: Number, y: Number, z: Number, id: number) → {Array}
Get/set the direction the audio source is pointing in the 3D cartesian coordinate space.
Depending on how direction the sound is, based on the cone
attributes, a sound pointing away from the listener can be quiet or silent.
Name | Type | Attributes | Description |
---|---|---|---|
sound_name | string |
audio clip name - case sensitive |
|
x | Number |
the x-orientation of the audio source. |
|
y | Number |
the y-orientation of the audio source. |
|
z | Number |
the z-orientation of the audio source. |
|
id | number |
<optional> |
the sound instance ID. If none is passed, all sounds in group will be changed. |
Type | Description |
---|---|
Array |
the current 3D spatial orientation: [x, y, z] |