Skip to content
lsl.devlsl.devLSL Dev

llGroundContour

function
Function syntax
vector llGroundContour(
  1. vector offset// Offset relative to the prim's position, expressed in local coordinates.
);
Returns
vector
Energy
10

Returns a vector that is the ground contour direction below the prim position + offset. The contour is the direction of a contour line at that point, that is the direction in which there is no change in elevation.

How to use
vector result = llGroundContour(ZERO_VECTOR);

This function is defined as:

vector llGroundContour(vector offset)
{
vector slope = llGroundSlope(offset);
return <-slope.y, slope.x, 0.0>;
}

Added in SL 0.9.0

Original wiki source

Some wiki templates and tables need their original context. View this article on the Second Life Wiki. Technical wording and examples are retained from the source; historical guidance may differ from current behavior.