Spatial sound in 3D

Basically my game is that theres these nextbots that run after u but i really want the sounds of them to be quietter when further away and loud when close up.

this would also need rotation since its a 3D platformer so there would deffo be sum cosine and sinus but i have absolutely no idea how to do it

right now i just do this in the channel volume

150 / exp((Collision3D::DistanceToPosition(Nextbot,CameraCenterX(),CameraCenterY(),Scene3D::CameraZ()))/8000000)

but it isnt really doing the effect i need :frowning:
so uhm does anyone know how to use the spatial sound thing? :sob: