ConvertToWorldSpace: coordinates of the game world. Because a genie has a coordinate obtained through getPosition, but the coordinate is a coordinate relative to the parent, the actual absolute coordinate depends on the position of the parent. Therefore, you can use getParent ()-> convertToWorldSpace to convert the coordinates to the absolute coordinates of the game.
After being converted to the world coordinates, it can be converted to the same coordinate system as other genie in different coordinate systems, so that the coordinates can be calculated.
After calculating the coordinates, if you need to reset the coordinates of the genie, You have to convert the coordinates back to the relative coordinates (because setPosition is also the relative coordinate set). At this time, call getParent ()-> convertToNodeSpace
You can call setPosition to set it.