Global_position vs position

While working ahead through the tutorial I used random_spawn_position.position instead of random_spawn_position.global_position as done in the tutorial. In this use, they both seem to work the same, what is the difference and does it matter in this case?

Although its not explicitly stated using .position is using the local position of the node and this can have an undesired effect if the local position is different so we use global_position.
In this case they seem to be the same so it hasnt had an effect.

Hope this helps

1 Like

This topic was automatically closed 20 days after the last reply. New replies are no longer allowed.

Privacy & Terms