menu
 
Version
2017.1.9.6501

2024.1.5.8803

2023.1.13.8732

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

ak.soundengine.setPosition


Set the position of a game object. See AK::SoundEngine::SetPosition.

(Required *)

Supported by

Graphical User Interface.

Arguments

Name Type Description
gameObject * integer Game Object identifier.
position * object The 3D position to set for the game object.


Arguments Details


gameObject

description : Game Object identifier.
type : integer
minimum : 0
maximum : 18446744073709551615

position

type : object
description : The 3D position to set for the game object.

Name Type Description
orientationFront * object Orientation of the listener.
orientationTop * object Top orientation of the listener.
position * object Position of the listener



argsSchema / position / ...

orientationFront

type : object
description : Orientation of the listener.

Name Type Description
x * number X Position.
y * number Y Position.
z * number Z Position.



argsSchema / position / ...

orientationTop

type : object
description : Top orientation of the listener.

Name Type Description
x * number X Position.
y * number Y Position.
z * number Z Position.



argsSchema / position / ...

position

type : object
description : Position of the listener

Name Type Description
x * number X Position.
y * number Y Position.
z * number Z Position.




Examples :

Setting the position of a game object

Sets the position of "gameObject" to "position/position" with the provided orientation.

Arguments:

{
    "gameObject": 1122334, 
    "position": {
        "orientationFront": {
            "x": 100, 
            "y": 200, 
            "z": 0
        }, 
        "orientationTop": {
            "x": 0, 
            "y": 0, 
            "z": 200
        }, 
        "position": {
            "x": 5, 
            "y": 10, 
            "z": 100
        }
    }
}


Detailed JSON Schema


Arguments :

{
    "type": "object", 
    "properties": {
        "gameObject": {
            "description": "Game Object identifier.", 
            "type": "integer", 
            "minimum": 0, 
            "maximum": 18446744073709551615
        }, 
        "position": {
            "type": "object", 
            "description": "The 3D position to set for the game object.", 
            "properties": {
                "orientationFront": {
                    "type": "object", 
                    "description": "Orientation of the listener.", 
                    "properties": {
                        "x": {
                            "type": "number", 
                            "description": "X Position."
                        }, 
                        "y": {
                            "type": "number", 
                            "description": "Y Position."
                        }, 
                        "z": {
                            "type": "number", 
                            "description": "Z Position."
                        }
                    }, 
                    "required": [
                        "x", 
                        "y", 
                        "z"
                    ], 
                    "additionalProperties": false
                }, 
                "orientationTop": {
                    "type": "object", 
                    "description": "Top orientation of the listener.", 
                    "properties": {
                        "x": {
                            "type": "number", 
                            "description": "X Position."
                        }, 
                        "y": {
                            "type": "number", 
                            "description": "Y Position."
                        }, 
                        "z": {
                            "type": "number", 
                            "description": "Z Position."
                        }
                    }, 
                    "required": [
                        "x", 
                        "y", 
                        "z"
                    ], 
                    "additionalProperties": false
                }, 
                "position": {
                    "type": "object", 
                    "description": "Position of the listener", 
                    "properties": {
                        "x": {
                            "type": "number", 
                            "description": "X Position."
                        }, 
                        "y": {
                            "type": "number", 
                            "description": "Y Position."
                        }, 
                        "z": {
                            "type": "number", 
                            "description": "Z Position."
                        }
                    }, 
                    "required": [
                        "x", 
                        "y", 
                        "z"
                    ], 
                    "additionalProperties": false
                }
            }, 
            "required": [
                "orientationFront", 
                "orientationTop", 
                "position"
            ], 
            "additionalProperties": false
        }
    }, 
    "required": [
        "gameObject", 
        "position"
    ], 
    "additionalProperties": false
}


Options :

{
    "type": "object", 
    "required": [], 
    "properties": {}, 
    "additionalProperties": false
}


Response :

{
    "type": "object", 
    "properties": {}, 
    "additionalProperties": false
}

Document version : 1


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