#Can't get accurate position data

1 messages · Page 1 of 1 (latest)

oblique granite
#

I'm trying to draw a line, starting from the center of a circle but circle.global_position starts the line from the top left corner (as in the image). Pivot point is in the center and there's nothing complex hierarchically. I'm dealing with this with a little while now.

sullen linden
#

Since you already have the pivot offset setup at the center, you can add it's value to the position to get the center's position

#

Alternatively you could add size/2

oblique granite
sullen linden
#

Common confusion! It only affects how the object is scaled and rotated, the position is always the top left corner (when talking about control nodes)

oblique granite
#

I also started to make this project with your ui tutorial! so ty again, Karto

oblique granite
#

(added @tool for close-up.) position values seems quite messed up