[Solved]Create anchor in PointCloud point ARFoundation 3.0.1

Hi

Given a selected position on the screen, i need to create an anchor at the closest possible point. My first idea was to retrieve the point cloud and for each point convert its position to screen coordinates and choose the closest one.

In the documentation of ARPointCloud (Class ARPointCloud | AR Foundation | 3.0.1) said:

Positions are provided in point cloud space, that is, relative to this ARPointCloud’s local position and rotation

how can I convert the position of a point to screen space?

I’m using ARFoundation 3.0.1 with ARCore

Any help would be appreciated

alternately solved
with m_RaycastManager.Raycast (new Vector2 (x, y), hitResults, TrackableType.FeaturePoint)