版本
menu_open

Occlusion

Basic occlusion is exposed in UAkComponent::SetOcclusion(). To enable occlusion on an Actor, use the Set Occlusion Refresh Interval function in the Blueprint Editor. A version for a UAkComponent is also available. If the refresh interval is set to 0, the occlusion check will never be performed.

Determining whether a listener is occluded from a source is done with a simple line-of-sight check, using the line trace channel set in the AkComponent's properties (OcclusionCollisionChannel). If the line of sight is blocked, the occlusion level calculation is started. This calculation maps the hit point on the obstacle to its bounding box, creating twelve points around the obstacle. To see if these "secondary paths" are also blocked, other line-of-sight tests are done. The occlusion sent to the SoundEngine is modulated from the number of "secondary paths" that are blocked.

A temporal fade method is also added to allow smooth transition between occlusion levels. To change the fade speed, change the OCCLUSION_FADE_RATE constant.

Generated by  doxygen 1.6.3

此页面对您是否有帮助?

需要技术支持?

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

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

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

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

开始 Wwise 之旅