Pierre-Marie,
By looking at your tutorial & RACC code to detect walkable faces, I'm afraid that the check is not fully correct
. It should be:
Code:
if (((plane->normal[2] < 0.707106) && (face->side == 0)) // Based on PMB navmesh tutorial,
|| ((plane->normal[2] > -0.707105) && (face->side == 1)) // Addition by evyncke
|| ((plane->normal[2] == 1) && (face->side == 1)))
// a simple check to see whether plane is flat or walkable < 45 degree
continue ; // Discard this face
Without the handling of
negative normals, the
de_aztec slope between the river and bomb spot was never processed.
It looks like 99.9% of walkable slopes are using a positive normal but 0.1% are using a
negative normal but with side == 1.
HTH
-eric