Godot Version
4.2
Question
imagine a scene structure:
— Parent Node 1
— — Marker 1
— Parent Node 2
— — Marker 2
if you had to match the global positions of marker 1 and marker 2 (with them having an offset on their local position) by moving the parent nodes, how would you do it? and if that seemed easy, how would you work out when a global rotation is applied on the y axis?
in another words, im making rooms that should connect to each other via a doorframe, to achieve this i’ve decided the easiest way would be to match the positions of a “DoorwayIn” and a “DoorwayOut” room nodes. DoorwayIn and DoorwayOut are doorframe meshes, ive managed to deal with this problem by subtracting the previous room’s global DoorwayOut position from new room’s DoorwayIn local position (see image below for reference)
The only problem im facing right now is I got rooms that can change the “way” the room are creating to the left/right or even turn around 180 degrees on a higher Y level (like a staircase that goes up and back the same way you came from), heres some more screenshots:
video demo of current state:
https://mega.nz/file/dZsizQ4D#WRZsEKjCV9a-nOg3miCyfgIT0C5iiV8SHeGlgwYZkLI


