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
listener node_path listener
url string url
volume float volume
loop boolean loop
loopStart float loopStart
loopEnd float loopEnd
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
autoplay boolean autoplay
showHelper boolean show helper
helperSize float helper size
play button play
pause button pause
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