"gameObject"に"positions"で定義した複数のポジションを設定し、1つのサウンドで複数のソースをシミュレーションします。
関数URI
ak.soundengine.setMultiplePositions
引数
{
"gameObject": 1122334,
"positions": [
{
"position": {
"orientationFront": {
"x": 5,
"y": 20,
"z": 10
},
"orientationTop": {
"x": 70,
"y": 150,
"z": 6
},
"position": {
"x": 70,
"y": 150,
"z": 10
}
}
},
{
"position": {
"orientationFront": {
"x": -50,
"y": 80,
"z": 15
},
"orientationTop": {
"x": 2,
"y": 40,
"z": 6
},
"position": {
"x": 2,
"y": -20,
"z": 400
}
}
}
],
"multiPositionType": 1
}
結果
Wwise Authoring APIの詳細は、 Wwise Authoring API (WAAPI)を使用する を参照してください。