llGroundNormal
vector llGroundNormal(vector Offset)Returns the ground normal below the object position + offset.
Returns the ground contour at the object's position + Offset.
Parameters
-
Offset(vector)
This function is defined as:
vector llGroundNormal(vector offset){ vector slope = llGroundSlope(offset); return <slope.x, slope.y, 1.0>;}There is sometimes confusion between a Surface Normal (the direction from the surface) and a Normalized Vector (a vector with a magnitude of 1.0, also called a Unit Vector). This function does not return a unit vector. Surface normals may encode additional information in the magnitude of the vector. If you need a Unit Vector, simply use llVecNorm.