I have discover that using SceneKit within Swift UI is now easier with the introduction of SceneView.
However, I would like to be able to click on the SceneView to add Sphere for example.
I would also like to use the hitTest, projectPoint and unprojectPoint define in SCNSceneRenderer.
So my questions are:
1) How to get the position of a click since onTap gesture modifier does not provide any information about the location of the click.
2) How to use the hitTest, projectPoint and unprojectPoint define in SCNSceneRenderer since SceneView, contrary to SCNView, does not comply to SCNSceneRenderer protocol.
Best regards
Vincent LIEGEOIS
However, I would like to be able to click on the SceneView to add Sphere for example.
I would also like to use the hitTest, projectPoint and unprojectPoint define in SCNSceneRenderer.
So my questions are:
1) How to get the position of a click since onTap gesture modifier does not provide any information about the location of the click.
2) How to use the hitTest, projectPoint and unprojectPoint define in SCNSceneRenderer since SceneView, contrary to SCNView, does not comply to SCNSceneRenderer protocol.
Best regards
Vincent LIEGEOIS