Ho to get worldpoint in SCNView

I'm new to SceneKit and I'm facing a major problem, when you tap a model of SCNGeometry, how to get the world coordinate of it? Or you can say how to convert the top coordinate to world coordinate. It seems that SCNView dose provide such a method, I just didn't find it. So, can anyone help me with it? Thanks very much.

Answered by DTS Engineer in 732254022

Hello,

I believe you are looking for this method: hitTest(_:options:)

It returns an array of SCNHitTestResults, which each have a worldCoordinates property.

Accepted Answer

Hello,

I believe you are looking for this method: hitTest(_:options:)

It returns an array of SCNHitTestResults, which each have a worldCoordinates property.

Ho to get worldpoint in SCNView
 
 
Q