0 votes

The title is self explanatory! I'm using Godot 3.0.2

in Engine by (55 points)

1 Answer

0 votes

This is the essence of the difference between local and global position. A local position always gives the position relative to the parent, wehreas global tells you the relative position to the root node.

Relative to parent:

get_position()

Relative to root node:

get_global_position()
by (840 points)

Ooh! really thanks :)

Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read Frequently asked questions and How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to [email protected]gine.org with your username.