버전

menu_open

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


이 페이지가 도움이 되었나요?

지원이 필요하신가요?

질문이 있으신가요? 문제를 겪고 계신가요? 더 많은 정보가 필요하신가요? 저희에게 문의해주시면 도와드리겠습니다!

지원 페이지를 방문해 주세요

작업하는 프로젝트에 대해 알려주세요. 언제든지 도와드릴 준비가 되어 있습니다.

프로젝트를 등록하세요. 아무런 조건이나 의무 사항 없이 빠른 시작을 도와드리겠습니다.

Wwise를 시작해 보세요