Difference between revisions of "LlGroundSlope"

From Second Life Wiki
Jump to navigation Jump to search
m
m
Line 1: Line 1:
{{LSL_Function
{{LSL_Function
|inject-2={{LSL Function/offset|offset|noZ=*}}
|inject-2={{LSL Function/offset|offset|noZ=*|sim=*}}
|func_id=221|func_sleep=0.0|func_energy=10.0
|func_id=221|func_sleep=0.0|func_energy=10.0
|func=llGroundSlope
|func=llGroundSlope
|return_type=vector|p1_type=vector|p1_name=offset
|return_type=vector|p1_type=vector|p1_name=offset
|func_footnote=The requested position needs to be in the same sim.
|func_footnote
|func_desc
|func_desc
|return_text=that is the ground slope below the object [[llGetPos|position]] + {{LSLP|offset}}
|return_text=that is the ground slope below the object [[llGetPos|position]] + {{LSLP|offset}}

Revision as of 10:51, 18 June 2012

Summary

Function: vector llGroundSlope( vector offset );

Returns a vector that is the ground slope below the object position + offset

• vector offset offset relative to the prim's position and expressed in local coordinates

The requested position needs to be in the same region. Only the x and y coordinates in offset are important, the z component is ignored.

Examples

See Also

Functions

•  llGround Gets the ground height
•  llGroundContour Gets the ground contour
•  llGroundNormal Gets the ground normal

Deep Notes

Search JIRA for related Issues

Signature

function vector llGroundSlope( vector offset );