Calculation of Slope/Passability
Posted: 31 May 2011, 20:45
As far as I know, maps are ultimately composed of right isosceles triangles, whose vertices are defined by the heightmap, like this:
Note: I need to know this for more than just testing for passability, so please don't tell me to just use tools to see the passability or whatever.
My question is how slope/passability are calculated. Is a slope defined for each triangle, or each square? Are the slopes calculated from the edges, or the faces?Note: I need to know this for more than just testing for passability, so please don't tell me to just use tools to see the passability or whatever.