Version

menu_open
Wwise SDK 2023.1.7

◆ 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.

Cette page a-t-elle été utile ?

Besoin d'aide ?

Des questions ? Des problèmes ? Besoin de plus d'informations ? Contactez-nous, nous pouvons vous aider !

Visitez notre page d'Aide

Décrivez-nous de votre projet. Nous sommes là pour vous aider.

Enregistrez votre projet et nous vous aiderons à démarrer sans aucune obligation !

Partir du bon pied avec Wwise