I need some genius to help me with this one. I am creating an audio engine to work with babylon.js.
At the moment i’m stuck as I am not a graphic math wizard coder.
I am looking to get the direction of the camera relative to an object. the object is omitting a sound and i need pan the sound so i need to automate the stereo channels poportional to the direction the camera faces in relation to the object.
If you can imagine the camera having ears basically. I need to be able to get angle the camera is looking away from or at the object. The object is omitting sound from all directions. If that makes sense. I would appreciate some help greatly.