Audiokinetic의 커뮤니티 Q&A는 사용자가 Wwise와 Strata 커뮤니티 내에서 서로 질문과 답변을 하는 포럼입니다. Audiokinetic의 기술 지원팀에게 문의하고 싶으신 경우 지원 티켓 페이지를 사용해주세요.

[Unity] Distance relative to the player, panning relative the camera

0 투표
Hello,

let's say, in a third person game, the Listener is on the Player instead of the Camera. Is there a way to have all 3D panning relative to the Camera, but attenuations calculated based on the distance between audio sources and the Player ?

Minh
문의 2019 8월 2 General Discussion Minh H. (100 포인트) 로 부터

1 답변

0 투표
You might like to try setting the forward/up vectors of the listener to be those of the camera while keeping the position vector that of the player when you set your listener position from code.

-

dan.m
답변 2019 8월 6 Dan M. (2,640 포인트) 로 부터
I've never tried this, but I can't imagine it working properly.  With what you're suggesting, if the camera is well behind the player, but the listener is on the camera, and a sound plays just behind the player, it'll sound like it's coming from behind (on a surround sound system), even though it's happening in front of the player. For regular sound systems, you could perform the same thought experiment with the sound coming to the right of the player, but still in front of the camera, the sound would come from the right speaker instead of both.  For this reason I really don't think changing the forward/up vectors would do anything.
...