问题
how do i get the 2d points to plot on to uiview from 3d SCNNode.
Suppose i have following SCNNodes
pos(1.002163 -0.524722 -0.770023) pos(1.174463 -0.765098 -0.607172) pos(0.668790 -0.744061 -0.696863) pos(0.781208 -0.744061 -1.228943)
And i need 2d points from above .I am new to arkit please help me
回答1:
You are looking for projectPoint
let projectedPoint = sceneView.projectPoint(pos)
来源:https://stackoverflow.com/questions/50741286/how-do-it-convert-2d-points-from-3d-points-in-arkit-ios