Doc > Nodes > OBJ > PositionalAudio

Doc > Nodes > OBJ > PositionalAudio

Creates an audio source.

Description

This node also has its own transforms. And if it is set as input of other nodes, their objects will be added as children to the object of this node.

Parameters

Name Type Description
audioNode node_path audio node
refDistance float refDistance. See https://developer.mozilla.org/en-US/docs/Web/API/PannerNode/refDistance
rolloffFactor float rolloffFactor. See https://developer.mozilla.org/en-US/docs/Web/API/PannerNode/rolloffFactor
maxDistance float maxDistance. See https://developer.mozilla.org/en-US/docs/Web/API/PannerNode/maxDistance
distanceModel integer distanceModel. See https://developer.mozilla.org/en-US/docs/Web/API/PannerNode/distanceModel
coneInnerAngle float coneInnerAngle. See https://developer.mozilla.org/en-US/docs/Web/API/PannerNode
coneOuterAngle float coneOuterAngle. See https://developer.mozilla.org/en-US/docs/Web/API/PannerNode
coneOuterGain float coneOuterGain. See https://developer.mozilla.org/en-US/docs/Web/API/PannerNode
listenerTransformAutoUpdate boolean ensures the transform of the audio listener is updated on very frame
showHelper boolean show helper
helperSize float helper size
keepPosWhenParenting boolean toggle on to keep world position when adding a parent or removing from one
rotationOrder integer rotation order
t vector3 translate
r vector3 rotation
s vector3 scale
scale float scale
matrixAutoUpdate boolean set for the matrix to be updated every frame