is there a global position attribute in python?

im trying to set the location of an object parented to my player to the camera’s position. the camera is not paranted to the player. When i set the position.

player.position = camera.position

it end up puting the cameras global position added the the parants position.
what im wondering is there a

player.globalPosition = camera.globalPosition

please if there is not one i need to know, so i can move on in my development

Eureca! its object.worldPosition

worldPosition and localPosition :slight_smile:

Do not use KX_GameObject.position it is deprecated and bad designed.

Better use KX_GameObject.worldPosition or KX_GameObject.localPosition.

I recommend to bookmark the Blender API [and do not use module bpy!]