版本

menu_open
Wwise SDK 2024.1.0

◆ SetPortalToPortalObstruction()

AKSOUNDENGINE_API AKRESULT AK::SpatialAudio::SetPortalToPortalObstruction ( AkPortalID  in_PortalID0,
AkPortalID  in_PortalID1,
AkReal32  in_fObstruction 
)

Set the obstruction value of the path between two portals that has been created by Spatial Audio. The obstruction value is applied on one of the path segments of the sound between the emitter and the listener. Diffraction must be enabled on the sound for a diffraction path to be created. Also, there should not be any portals between the two provided ID parameters. The obstruction value is used to simulate objects between the portals that are obstructing the sound. Send an obstruction value of 0 to ensure the value is removed from the internal data structure.

参见
参数
in_PortalID0Portal ID
in_PortalID1Portal ID
in_fObstructionObstruction value. Valid range 0.f-1.f

此页面对您是否有帮助?

需要技术支持?

仍有疑问?或者问题?需要更多信息?欢迎联系我们,我们可以提供帮助!

查看我们的“技术支持”页面

介绍一下自己的项目。我们会竭力为您提供帮助。

来注册自己的项目,我们帮您快速入门,不带任何附加条件!

开始 Wwise 之旅