- I want to say is
When I click on an area of the terrain, I only get the index and position of the vertex I clicked on
This terrain is a Mesh in which the vertices of the click position are extracted
What do you mean by “a particular piece of terrain”?
@Kitty you will mostly never click on a vertex but in between 3 vertices creating a face.
if you follow the doc https://doc.babylonjs.com/features/featuresDeepDive/mesh/interactions/picking_collisions you ll learn how to get picking infos which contains the face id you are looking for.
As a usage example, here is how we use it to extract interpolated UVs from a picked coordinate:
1 Like