Version
menu

Wwise SDK 2025.1.0
AkCmd_SetPosition Struct Reference

#include <AkCommandTypes.h>

Public Attributes

AkGameObjectID gameObjectID
 Game Object ID. More...
 
struct AkWorldTransform position
 Game object position. More...
 
AkUInt32 flags
 See AkSetPositionFlags. More...
 

Detailed Description

Sets the position of a game object.

Warning
The object's orientation vectors (position.orientationFront and position.orientationTop) must be normalized.

This command can fail for the following reasons:

  • AK_InvalidParameter: gameObjectID is outside the valid range, or position is not a valid transform.
  • AK_IDNotFound: gameObjectID is not a registered game object ID.
See also

Definition at line 265 of file AkCommandTypes.h.


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