I am displaying a 3d model consisting of several SNNodes in SceneKit.
I am displaying a 2D SpriteKit node on the sceneview-overlay view. The 2D-node position should always be in front of a particular 3D SCNNode.
How can I map the 3D position to the SpriteKit 2D position?
I tried let screenPoint = sceneView.projectPoint(my3dNode)
, but this doesn't work: even when the my3dNode is in the center of the screen, the function returns very weird values (e.g. negative values or over 1000).
Do you have any ideas why?