I am working on 3D project/unproject logic and I am learning some of the fundamentals. I went over this question:
Scene Kit: projectPoint calculated is displaced
In that question part of the shown code is:
//world coordinates
let v1w = topSphereNode.convertPosition(v1, toNode: scene.rootNode)
let v2w = topSphereNode.convertPosition(v2, toNode: scene.rootNode)
My question is, why is that needed? Why not just use v1 and v2 as points since they are already valid points 3D points in the scene? Why does the top sphere node's position need to be converted with respect to the root node's position?