버전

menu_open
AkReal32 __cdecl AK::SoundEngine::Query::GetMaxRadius ( AkGameObjectID  in_GameObjId  ) 

Returns the maximum distance used in attenuations associated to sounds playing using the specified game object. This may be used for example by the game to know if some processing need to be performed on the game side, that would not be required if the object is out of reach anyway.

Note.gif
Note: The returned value is NOT the distance from a listener to an object but the maximum attenuation distance of all sounds playing on this object.
Returns:
  • A negative number if the game object specified is not playing.
  • 0, if the game object was only associated to sounds playing using no distance attenuation ( like 2D sounds ).
  • A positive number represents the maximum of all the distance attenuations playing on this game object.
Note.gif
Note: The Scaling factor (if one was specified on the game object) is included in the return value. The Scaling factor is not updated once a sound starts playing since it is computed only when the playback starts with the initial scaling factor of this game object. Scaling factor will be re-computed for every playback instance, always using the scaling factor available at this time.
See also:
Parameters:
in_GameObjId  Game object ID

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

지원이 필요하신가요?

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

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

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

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

Wwise를 시작해 보세요