llWind
function
Function syntax
vector llWind(vector offset// Offset relative to the prim's position, expressed in local coordinates.
);- Returns
vector- Energy
- 10
Returns a vector representing the wind velocity at the prim's position offset by the vector offset.
Returns a vector that is the wind velocity at the prim’s position + offset
vector result = llWind(ZERO_VECTOR);Examples
Section titled “Examples”Example 1
default{ touch_start(integer num) { llSay(0, "Wind velocity: " + (string)llWind(ZERO_VECTOR)); }}Example 2
// wind interpretation as angle and speeddefault{ state_entry() { vector windVector = llWind( ZERO_VECTOR); float windSpeed = llVecMag( windVector); float windDirection = llAtan2( windVector.y, windVector.x); integer compassWind = ( 450 - (integer)( RAD_TO_DEG*windDirection))%360; llOwnerSay( "\nWind direction: "+(string)compassWind+"°\nWind speed: "+(string)windSpeed+" m/S"); }}Known issues
Section titled “Known issues”SVC-3131: llWind() and viewer wind effects do not match
See also
Section titled “See also”Articles
Section titled “Articles”- Weather — SL Weather information
- Moderated in-world wind
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.