how to get global position(vector3) of spawned object?

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By bgegg

i try to get global position of it by translation properties(menber of spatial class).
but ,spawned object have relative position from spawn point position.
translation properties returned vector3(0,0,0) as value,but then spawn point positioned to vector(0,5,0)

what is properties for get it?

:bust_in_silhouette: Reply From: omggomb

You can get the global position of a Spatial by looking at global_transform.origin

thanks for comment.
many thanks!

bgegg | 2022-05-03 10:59