Get or set the direction the audio source is pointing in 3D space.
Combined with the PannerAttributes cone settings, a sound
pointing away from the listener will be quieter or silent.
Call with just sound_name to read back the group's current
orientation; call with x (and optionally y / z / id) to write
it.
Param: sound_name
Audio clip name (case-sensitive).
Param: x
X-component of the orientation vector. Omit to read.
Param: y
Y-component. Defaults to the current value when setting.
Param: z
Z-component. Defaults to the current value when setting.
Param: id
Sound instance ID. When omitted, all sounds in the group
are affected.
Returns
The current [x, y, z] when called as a getter; nothing
when called as a setter.
Get or set the direction the audio source is pointing in 3D space. Combined with the PannerAttributes cone settings, a sound pointing away from the listener will be quieter or silent.
Call with just
sound_nameto read back the group's current orientation; call withx(and optionallyy/z/id) to write it.Param: sound_name
Audio clip name (case-sensitive).
Param: x
X-component of the orientation vector. Omit to read.
Param: y
Y-component. Defaults to the current value when setting.
Param: z
Z-component. Defaults to the current value when setting.
Param: id
Sound instance ID. When omitted, all sounds in the group are affected.
Returns
The current
[x, y, z]when called as a getter; nothing when called as a setter.