Version
menu

Wwise SDK 2025.1.4
AkCmd_SetObjectObstructionAndOcclusion Struct Reference

#include AkCommandTypes.h>

Public Attributes

AkGameObjectID emitterID
 Emitter Game Object ID. More...
 
AkGameObjectID listenerID
 Listener Game Object ID. More...
 
struct AkObstructionOcclusionValues value
 Obstruction and occlusion values. More...
 

Detailed Description

Sets a game object's obstruction and occlusion levels. If the game object as multiple positions, values are set for all positions. To assign a unique obstruction and occlusion value to each sound position, instead use AkCommand_SetMultipleObstructionAndOcclusion. This function is used to affect how an object should be heard by a specific listener.

This command can fail for the following reasons:

  • AK_InvalidParameter: emitterID is not a valid game object ID or obstruction/occlusion values are outside the accepted range
  • AK_InsufficientMemory: Not enough memory to complete the operation
  • AK_IDNotFound: emitterID is not a registered game object ID.
See also

Definition at line 502 of file AkCommandTypes.h.


Was this page helpful?

Need Support?

Questions? Problems? Need more info? Contact us, and we can help!

Visit our Support page

Tell us about your project. We're here to help.

Register your project and we'll help you get started with no strings attached!

Get started with Wwise