📄 drei/abstractions/positional-audio

File: positional-audio.md | Updated: 11/15/2025


title: PositionalAudio sourcecode: src/core/PositionalAudio.tsx

<Grid cols={4}> <li> <Codesandbox id="gkfhr" /> </li> </Grid>

A wrapper around THREE.PositionalAudio. Add this to groups or meshes to tie them to a sound that plays when the camera comes near.

<PositionalAudio
  url="/sound.mp3"
  distance={1}
  loop
  {...props} // All THREE.PositionalAudio props are valid
/>