mirror of
https://github.com/opensim/opensim.git
synced 2026-07-31 05:45:37 +08:00
From: Kurt Taylor <krtaylor@us.ibm.com>
Attached is a patch for adding the llGetSunDirection functionality. It was implemented by adding a parameter to estate settings for storing the sun position. The sun position is calculated and stored via the sun module everytime the client's sun position is updated. It was tested with several different srcipts on Linux and Windows
This commit is contained in:
@@ -108,6 +108,9 @@ namespace OpenSim.Region.Environment.Modules
|
||||
{
|
||||
avatar.ControllingClient.SendSunPos(SunPos(HourOfTheDay()), new LLVector3(0, 0.0f, 10.0f));
|
||||
}
|
||||
// set estate settings for region access to sun position
|
||||
m_scene.RegionInfo.EstateSettings.sunPosition = SunPos(HourOfTheDay());
|
||||
|
||||
m_frame = 0;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user