버전
menu

Wwise SDK 2025.1.0
AkCmd_SetMultiplePositions 구조체 참조

#include <AkCommandTypes.h>

Public 속성

AkGameObjectID gameObjectID
 Game Object ID 더 자세히 ...
 
AkUInt32 flags
 See AkSetPositionFlags 더 자세히 ...
 
AkUInt32 multiPositionType
 See AkMultiPositionType 더 자세히 ...
 
AkUInt32 numPositions
 Number of game positions 더 자세히 ...
 

상세한 설명

Sets multiple positions to a single game object.

Setting multiple positions on a single game object is a way to simulate multiple emission sources while using the resources of only one voice. This can be used to simulate wall openings, area sounds, or multiple objects emitting the same sound in the same area.

참고:
  • Using this command with only one position is the same as using AkCommand_SetPosition.
  • If a sound has diffraction enabled, it is treated as AkMultiPositionType_MultiDirections. AkMultiPositionType_MultiSources is not supported in this case.

The Sound Engine expects an array of AkChannelEmitter objects after the command. For example:

auto cmd = (AkCmd_SetMultiplePositions*)AK_CommandBuffer_Add(buffer, AkCommand_SetMultiplePositions);
// Fill out the command...
cmd->numPositions = myPositions.size();
AK_CommandBuffer_AddArray(buffer, sizeof(AkChannelEmitter), myPositions.size(), myPositions.data());

This command can fail for the following reasons:

  • AK_InvalidParameter: gameObjectID is outside the valid range, or flags are invalid, no positions were added after the command, or at least one position in the array is invalid
  • AK_IDNotFound: gameObjectID is not a registered game object ID.
참고

AkCommandTypes.h 파일의 297 번째 라인에서 정의되었습니다.


이 페이지가 도움이 되었나요?

지원이 필요하신가요?

질문이 있으신가요? 문제를 겪고 계신가요? 더 많은 정보가 필요하신가요? 저희에게 문의해주시면 도와드리겠습니다!

지원 페이지를 방문해 주세요

작업하는 프로젝트에 대해 알려주세요. 언제든지 도와드릴 준비가 되어 있습니다.

프로젝트를 등록하세요. 아무런 조건이나 의무 사항 없이 빠른 시작을 도와드리겠습니다.

Wwise를 시작해 보세요