Difference between revisions of "LlGetSunDirection"
Jump to navigation
Jump to search
m (The result's normalized.) |
|||
(5 intermediate revisions by 4 users not shown) | |||
Line 1: | Line 1: | ||
{{LSL_Function | {{LSL_Function | ||
|func=llGetSunDirection|return_type=vector | |func=llGetSunDirection|return_type=vector | ||
| | |func_desc=Returns a normalized vector to the current sun position at the location of object containing the script. [[llGetSunDirection]] is the vector to the parcel's sun, [[llGetRegionSunDirection]] is the vector to region's sun. If there is no custom environment set for the current parcel [[llGetSunDirection]] returns the direction to the region's sun. These functions are altitude aware. | ||
|also_functions= | |also_functions= | ||
* [[llGetDayLength]] | |||
* [[llGetDayOffset]] | |||
* [[llGetMoonDirection]] | |||
* [[llGetMoonRotation]] | |||
* [[llGetSunDirection]] | |||
* [[llGetSunRotation]] | |||
* [[llGetRegionDayLength]] | |||
* [[llGetRegionDayOffset]] | |||
* [[llGetRegionMoonDirection]] | |||
* [[llGetRegionMoonRotation]] | |||
* [[llGetRegionSunDirection]] | |||
* [[llGetRegionSunRotation]] | |||
}} | |||
}} |
Revision as of 16:21, 1 February 2019
LSL Portal | Functions | Events | Types | Operators | Constants | Flow Control | Script Library | Categorized Library | Tutorials |
Summary
Function: vector llGetSunDirection( );
Returns a normalized vector to the current sun position at the location of object containing the script. llGetSunDirection is the vector to the parcel's sun, llGetRegionSunDirection is the vector to region's sun. If there is no custom environment set for the current parcel llGetSunDirection returns the direction to the region's sun. These functions are altitude aware.
Returns a vector