Possible to access mesh face positions?

I’m trying to positions objects about the face of a mesh at runtime, but I can’t find any ways to access faces. I know how to get vertices but can’t seem to do faces. I was thinking that the face index from a raycast might do something, but I’m not sure.

I don’t think face position is even a thing. Faces are defined by their vertices, so you can only get the position of the vertices that conform it and the normal of said face. To get the “face position” you would need to calculate the “center” of the face which can be troublesome depending on the geometry, also, remember that faces are deformed when being animated so you would need to be constantly calculating a value that is ultimately unnecessary. Vertex is love, vertex is life.

If you are doing a raycast then you can get the point of impact, which I think should be enough for you to positionate your objects.

^ This is a solid answer.

Do you know if there is a map of vertices to faces indices anywhere? Like, say I have the index of a specific vertex on a mesh, could I grab the index of the associated face from that?