Topic was automatically imported from the old Question2Answer platform.
Asked By
websterek
I’m looking for possibility to find global position of curve points after rotation or even better: for method to transform any position to global pos.
I need to rotate and move my path along the level but also I need global position of curve points and of course getting curve points pos after rotating path result with vector relative to the parent
This is necro-ing an old question, but for people who see this question in the future:
Basic Global Position of Points:
“Global_position” is an object’s position compared against root. The calculation for it is adding up positions so you know what a node’s TOTAL position is when you ignore all the children-ing and parent-ing:
The rotation quirk muddies this up a bit, since the curve points wouldn’t rotate with the Path2D (probably. I haven’t tested it). The probable solution would be to add the curve’s position AFTER rotating it using Vector2.rotated: