Aramil_04
That sounds about right math wise. I'll expand a bit:
Quote: "1) Calculate the coordinates of the four corners of the matrix tile I'm standing on,
2) Find which half (upper-right or lower left triangle) of the tile I'm on,
3) Find the equation of the plane formed by the corners of this triangle,
4) Plug in all other values into the equation and solve for the y-coord."
3a) Take two vectors from the found triangle and use the cross-product to calculate the normal to the plane.
3b) If you can calculate the normals ahead of time for each triangle and store them in an array, you could save yourself the calculation time by referencing the normal when it comes time to find the height.
4) Using the position, a reference vertex of the triangle, and the face normal, use the dot product to solve for height.
Enjoy your day.