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.
#Can't get accurate position data
1 messages · Page 1 of 1 (latest)
That's because the top left corner represents the position of a control node
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
I tought that pivot offset must represent the position of it. Ty!
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)
I also started to make this project with your ui tutorial! so ty again, Karto
I'll try this and write about how it went
(added @tool for close-up.) position values seems quite messed up