Associate this geometry instance with the room RoomID
. Associating a geometry instance with a particular room will limit the scope in which the geometry is visible/accessible. RoomID
can be left as default (-1), in which case this geometry instance will have a global scope. It is recommended to associate geometry with a room when the geometry is (1) fully contained within the room (ie. not visible to other rooms accept by portals), and (2) the room does not share geometry with other rooms. Doing so reduces the search space for ray casting performed by reflection and diffraction calculations. Take note that once one or more geometry instances are associated with a room, that room will no longer be able to access geometry that is in the global scope.
在文件 AkSpatialAudio.h 第 522 行定义.