audio.position
position(sound_name: string, x: Number, y: Number, z: Number) → {Array}
get or set the 3D spatial position for the specified sound.
Name | Type | Description |
---|---|---|
sound_name | string |
audio clip name - case sensitive |
x | Number |
the x-position of the audio source. |
y | Number |
the y-position of the audio source. |
z | Number |
the z-position of the audio source. |
Type | Description |
---|---|
Array |
the current 3D spatial position: [x, y, z] |