Spring doesn't represent terrain slopes in degrees, internally it uses
(1.0 - the terrain normal's y-component) so the slope of vertical faces
is 1 and that of horizontal ones 0. A unit's maxSlope value (which is in
degrees in its movedef) is converted so that the "can we go here?" (ie
"maxSlope > terrainSlope?") comparisons are meaningful, the formula
is 1.0 - cos(DEG2RAD(maxSlope * 1.5)). If you want to know the terrain
angle in degrees, compute RAD2DEG(arccos(1.0 - terrainSlope)). For a
kbot with a maxSlope of 36 degrees (~0.41221 in "Spring format"), the
maximum tolerable terrain angle is approximately
RAD2DEG(arccos(1.0 - 0.41221))
or 54 degrees. If maxSlope was 30, the MTTA would be 45, and if it was
60 (the highest sensible value due to that 1.5 scalar and the absence
of overhanging cliffs) the kbot could mount any terrain. In other words
you do not need the long mathematical derivation, just remember that
maxTerrainAngle = maxSlope * 1.5.
