Difference between revisions of "LlWind"

From Second Life Wiki
Jump to: navigation, search
m
m
Line 1: Line 1:
 
{{LSL_Function
 
{{LSL_Function
 +
|inject-2={{LSL Function/offset|offset|noZ=*|sim=*}}
 
|func=llWind
 
|func=llWind
 
|sort=Wind
 
|sort=Wind
Line 9: Line 10:
 
|p1_name=offset
 
|p1_name=offset
 
|func_footnote
 
|func_footnote
|return_text=that is the wind velocity at the prim position + '''offset'''
+
|return_text=that is the wind velocity at the prim's [[llGetPos|position]] + {{LSLPT|offset}}
 
|spec
 
|spec
 
|caveats
 
|caveats

Revision as of 11:16, 18 June 2012

Summary

Function: vector llWind( vector offset );

Returns a vector that is the wind velocity at the prim's 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

<lsl> default {

   touch_start(integer num)
   {
       llSay(0, "Wind velocity: " + (string)llWind(ZERO_VECTOR));
   }

}

</lsl>

See Also

Functions

•  llCloud

Articles

•  Weather SL Weather information

Deep Notes

All Issues

~ Search JIRA for related Issues
   llWind() and viewer wind effects do not match

Signature

function vector llWind( vector offset );