menu
 
Version
2024.1.6.8842

2024.1.6.8842

2023.1.14.8770

2025.1.0.8897

2022.1.19.8584

2021.1.14.8108

2019.2.15.7667

2019.1.11.7296

2018.1.11.6987

2017.2.10.6745

2017.1.9.6501

2016.2.6.6153

2015.1.9.5624

menu

Wwise SDK 2024.1.6

◆ SetPosition()

AKSOUNDENGINE_API AKRESULT AK::SoundEngine::SetPosition ( AkGameObjectID  in_GameObjectID,
const AkSoundPosition in_Position,
AkSetPositionFlags  in_eFlags = AkSetPositionFlags_Default 
)

Sets the position of a game object.

Warning
The object's orientation vector (in_Position.Orientation) must be normalized.
Returns
  • AK_Success when successful
  • AK_InvalidParameter if parameters are not valid, for example:
  • in_Position makes an invalid transform
  • in_eFlags is not one of the valid enum values
  • the game object ID is in the reserved ID range.
See also
Parameters
in_GameObjectIDGame Object identifier
in_PositionPosition to set; in_Position.Orientation must be normalized.
in_eFlagsOptional flags to independently set the position of the emitter or listener component.

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