gets the position of a game object instance * The position is relative the parent (if any). Use [ref:go.get_world_position] to retrieve the global world position. * * @name go.get_position * @replaces request_transform transform_response * @param [id] [type:string|hash|url] optional id of the game object instance to get the position for, by default the instance of the call
| 881 | * ``` |
| 882 | */ |
| 883 | int Script_GetPosition(lua_State* L) |
| 884 | { |
| 885 | Instance* instance = ResolveInstance(L, 1); |
| 886 | dmScript::PushVector3(L, dmVMath::Vector3(dmGameObject::GetPosition(instance))); |
| 887 | return 1; |
| 888 | } |
| 889 | |
| 890 | /*# gets the rotation of the game object instance |
| 891 | * The rotation is relative to the parent (if any). Use [ref:go.get_world_rotation] to retrieve the global world rotation. |
nothing calls this directly
no test coverage detected