Difference between revisions of "LlGetSunDirection"

From Second Life Wiki
Jump to navigation Jump to search
(15 intermediate revisions by 6 users not shown)
Line 1: Line 1:
{{LSL_Function
{{LSL_Function
|func_id=177|func_sleep=0.0|func_energy=10.0
|func=llGetSunDirection|return_type=vector
|func=llGetSunDirection|return_type=vector
|func_footnote
|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.
|func_desc
 
|return_text=that is the sun direction on the simulator
|spec
|caveats
|constants
|examples
|helpers
|also_functions=
|also_functions=
{{LSL DefineRow||[[llGetTimeOfDay]]|}}
* [[llGetDayLength]]
|also_events
* [[llGetDayOffset]]
|also_tests
* [[llGetMoonDirection]]
|also_articles
* [[llGetMoonRotation]]
|notes
* [[llGetSunDirection]]
|permission
* [[llGetSunRotation]]
|negative_index
* [[llGetRegionDayLength]]
|sort=GetSunDirection
* [[llGetRegionDayOffset]]
|cat1=World
* [[llGetRegionMoonDirection]]
|cat2=Time
* [[llGetRegionMoonRotation]]
|cat3=Simulator
* [[llGetRegionSunDirection]]
|cat4=Light
* [[llGetRegionSunRotation]]
|cat5
|cat6
}}
}}

Revision as of 16:21, 1 February 2019

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

Examples

Deep Notes

Search JIRA for related Issues

Signature

function vector llGetSunDirection();