How detect plane on sphere with raycast


I have fbx file with planes and sphere
a mesh of planes (with yellow color) on sphere
I want to know the position of the plane that are clicked by the users ( with raycast )

for example, i have 3 planes, and the user clicked on first plane, i want to know the position of that plane


The raycast returns a result that includes the entity that was hit. You can use that entity reference to get the position of the plane:

   const position = raycastResult.entity.getPosition();

Thank you

How can i get the vertex of that plane ? i want to get position of 4 point of that plane

For that you will need to get access to the vertices (positions) of the entity model, and convert them to world positions. You can use the Mesh API for that:

Can you please explain more about it ?