Difference between revisions of "LlGetMoonDirection"

From Second Life Wiki
Jump to navigation Jump to search
(Created page with "{{LSL_Function |func=llGetMoonDirection|return_type=vector |func_desc=Returns a normalized vector to the current moon position at the location of object containing the script....")
 
(Add new related function.)
 
Line 4: Line 4:


|also_functions=
|also_functions=
* [[llGetDayLength]]
{{LSL DefineRow||[[llGetEnvironment]]}} Newer function that consolidates many environment-based settings.
* [[llGetDayOffset]]
{{LSL DefineRow||[[llGetDayLength]]}}
* [[llGetMoonDirection]]
{{LSL DefineRow||[[llGetDayOffset]]}}
* [[llGetMoonRotation]]
{{LSL DefineRow||[[llGetMoonDirection]]}}
* [[llGetSunDirection]]
{{LSL DefineRow||[[llGetMoonRotation]]}}
* [[llGetSunRotation]]
{{LSL DefineRow||[[llGetSunDirection]]}}
* [[llGetRegionDayLength]]
{{LSL DefineRow||[[llGetSunRotation]]}}
* [[llGetRegionDayOffset]]
{{LSL DefineRow||[[llGetRegionDayLength]]}}
* [[llGetRegionMoonDirection]]
{{LSL DefineRow||[[llGetRegionDayOffset]]}}
* [[llGetRegionMoonRotation]]
{{LSL DefineRow||[[llGetRegionMoonDirection]]}}
* [[llGetRegionSunDirection]]
{{LSL DefineRow||[[llGetRegionMoonRotation]]}}
* [[llGetRegionSunRotation]]
{{LSL DefineRow||[[llGetRegionSunDirection]]}}
{{LSL DefineRow||[[llGetRegionSunRotation]]}}
}}
}}

Latest revision as of 07:46, 23 August 2022

Summary

Function: vector llGetMoonDirection( );

Returns a normalized vector to the current moon position at the location of object containing the script. llGetMoonDirection is the vector to the parcel's moon, llGetRegionMoonDirection is the vector to region's moon. If there is no custom environment set for the current parcel llGetMoonDirection returns the direction to the region's moon. These functions are altitude aware.
Returns a vector

Examples

See Also

Functions

•  llGetEnvironment Newer function that consolidates many environment-based settings.
•  llGetDayLength
•  llGetDayOffset
•  llGetMoonDirection
•  llGetMoonRotation
•  llGetSunDirection
•  llGetSunRotation
•  llGetRegionDayLength
•  llGetRegionDayOffset
•  llGetRegionMoonDirection
•  llGetRegionMoonRotation
•  llGetRegionSunDirection
•  llGetRegionSunRotation

Deep Notes

Signature

function vector llGetMoonDirection();