버전

menu_open
Wwise SDK 2021.1.14

◆ SetGameObjectRadius()

AKSOUNDENGINE_API AKRESULT AK::SpatialAudio::SetGameObjectRadius ( AkGameObjectID  in_gameObjectID,
AkReal32  in_outerRadius,
AkReal32  in_innerRadius 
)

Define a inner and outer radius around each sound position for a specified game object. The radii are used in spread and distance calculations, simulating a radial sound source. When applying attenuation curves, the distance between the listener and the inner sphere (defined by the sound position and in_innerRadius) is used. The spread for each sound position is calculated as follows:

  • If the listener is outside the outer radius, then the spread is defined by the area that the sphere takes in the listener field of view. Specifically, this angle is calculated as 2.0*asinf( in_outerRadius / distance ), where distance is the distance between the listener and the sound position.
  • When the listener intersects the outer radius (the listener is exactly in_outerRadius units away from the sound position), the spread is exactly 50%.
  • When the listener is in between the inner and outer radius, the spread interpolates linearly from 50% to 100% as the listener transitions from the outer radius towards the inner radius.
  • If the listener is inside the inner radius, the spread is 100%.
    참고: Transmission and diffraction calculations in Spatial Audio always use the center of the sphere (the position(s) passed into AK::SoundEngine::SetPosition or AK::SoundEngine::SetMultiplePositions) for raycasting. To obtain accurate diffraction and transmission calculations for radial sources, where different parts of the volume may take different paths through or around geometry, it is necessary to pass multiple sound positions into AK::SoundEngine::SetMultiplePositions to allow the engine to 'sample' the area at different points.
  • AK::SoundEngine::SetPosition
  • AK::SoundEngine::SetMultiplePositions
매개변수
in_gameObjectID Game object ID
in_outerRadius Outer radius around each sound position, defining 50% spread. Must satisfy in_innerRadius <= in outerRadius.
in_innerRadius Inner radius around each sound position, defining 100% spread and 0 attenuation distance. Must satisfy in_innerRadius <= in outerRadius.

이 페이지가 도움이 되었나요?

지원이 필요하신가요?

질문이 있으신가요? 문제를 겪고 계신가요? 더 많은 정보가 필요하신가요? 저희에게 문의해주시면 도와드리겠습니다!

지원 페이지를 방문해 주세요

작업하는 프로젝트에 대해 알려주세요. 언제든지 도와드릴 준비가 되어 있습니다.

프로젝트를 등록하세요. 아무런 조건이나 의무 사항 없이 빠른 시작을 도와드리겠습니다.

Wwise를 시작해 보세요