Quote:Original post by cybergolemQuote:Original post by blizzard999
Solution: compute the triangle-plane and resolve by y
aaarg, please no planes !
I still don't think in planes or vectors, just plain coordinate system :-)
Probably it's better you learn something, or not ?
write ux = x2 - x1 uy = y2 - y1 uz = z2 - z1 vx = x3 - x1 vy = y3 - y1 vz = z3 - z1then Nx = uy * vz - uz * vy Ny = uz * vx - ux * vz Nz = ux * vy - uy * vx d = - ( Nx * x1 + Ny * y1 + Nz * z1 ) finally y = - ( Nx * x + Nz * z + d ) / Ny where x and z are the 2D coordinates y is the height you are searching for