Difference between revisions of "LlGetRegionSunRotation"

From Second Life Wiki
Jump to navigation Jump to search
(Created page with "{{LSL_Function |func=llGetRegionSunRotation|return_type=rotation |func_desc=Return the rotation applied to the sun for the region at the location of the object containing the...")
 
(Add new related function.)
 
(One intermediate revision by one other user not shown)
Line 1: Line 1:
{{LSL_Function
{{LSL_Function
|func=llGetRegionSunRotation|return_type=rotation
|func=llGetRegionSunRotation|return_type=rotation
|func_desc=Return the rotation applied to the sun for the region at the location of the object containing the script.  These functions are altitude aware and so will pick up the sun for their current track. [[llGetRegionSunRotation]] returns the rotation applied at the region level, [[llGetSunRoation]] does the same for the parcel.  If there is no custom environment applied to parcel [[llGetSunRotation]] returns the same value as [[llGetRegionSunRotation]].
|func_desc=Return the rotation applied to the sun for the region at the location of the object containing the script.  These functions are altitude aware and so will pick up the sun for their current track. [[llGetRegionSunRotation]] returns the rotation applied at the region level, [[llGetSunRotation]] does the same for the parcel.  If there is no custom environment applied to parcel [[llGetSunRotation]] returns the same value as [[llGetRegionSunRotation]].


|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 08:53, 23 August 2022

Summary

Function: rotation llGetRegionSunRotation( );

Return the rotation applied to the sun for the region at the location of the object containing the script. These functions are altitude aware and so will pick up the sun for their current track. llGetRegionSunRotation returns the rotation applied at the region level, llGetSunRotation does the same for the parcel. If there is no custom environment applied to parcel llGetSunRotation returns the same value as llGetRegionSunRotation.
Returns a rotation

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

Search JIRA for related Issues

Signature

function rotation llGetRegionSunRotation();