Yes, I know that it returns a gradient, but what is a gradient, and what unit measures that function, degrees maybe?
I’m asking this because:
!
Yes, I know that it returns a gradient, but what is a gradient, and what unit measures that function, degrees maybe?
I’m asking this because:
!
A gradient measures the change of one variable in relation to the change of another. So a gradient of 11 on that slope means that if you were to travel 1 unit along the terrain, you’d have to climb 11 units up - it is dimensionless and doesn’t have units.
Gradient…that’s just another word for steepness (as in the word grade). It returns a single float value which is one indication of what that means.
Use Debug.Log to find out what range that float is in. Since you’ve noted that it shows 11 there, I’d say its degrees - 0 to 90.