Original Post
Hi im trying to indicate which triangle my player is standing on in my collision terrain mesh by rendering an arrow model at each vertex of the triangle that the characters down vector intersects with. I got the face index returned by the D3DXintersect method. I thought that the index was the same number as the first vertex in the triangle which is interscted i.e. trinagle verticies = verticies[faceIndex] verticies[faceIndex + 1] verticies[faceIndex + 2] but it seems that this is not the case. How do i get the actual vertex numbers of the triangle from the face index returned from d3dxIntersect?