audio.orientation
orientation(sound_name: string, x: Number, y: Number, z: 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 | 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. |
Type | Description |
---|---|
Array |
the current 3D spatial orientation: [x, y, z] |