Version

menu_open
Wwise SDK 2024.1.0

◆ SetGeometryInstance()

AKSOUNDENGINE_API AKRESULT AK::SpatialAudio::SetGeometryInstance ( AkGeometryInstanceID  in_GeometryInstanceID,
const AkGeometryInstanceParams in_params 
)

Add or update a geometry instance from the SpatialAudio module for geometric reflection and diffraction processing. A geometry instance is a unique instance of a geometry set with a specified transform (position, rotation and scale). It is necessary to create at least one geometry instance for each geometry set that is to be used for diffraction and reflection simulation. The ID (in_GeomSetInstanceID) must be unique amongst all geometry instances, including geometry instances referencing different geometry sets. The ID is chosen by the client in a manner similar to AkGameObjectID's. To update the transform of an existing geometry instance, call SetGeometryInstance again, passing the same AkGeometryInstanceID, with the updated transform.

See also
Parameters
in_GeometryInstanceIDUnique geometry set instance ID, chosen by client.
in_paramsGeometry instance parameters to set.

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