mirror of
https://github.com/opensim/opensim.git
synced 2026-08-07 17:55:48 +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:
@@ -159,6 +159,18 @@ namespace OpenSim.Framework
|
||||
}
|
||||
}
|
||||
|
||||
private LLVector3 m_sunPosition;
|
||||
|
||||
public LLVector3 sunPosition
|
||||
{
|
||||
get { return m_sunPosition; }
|
||||
set
|
||||
{
|
||||
//Just set - does not need to be written to settings file
|
||||
m_sunPosition = value;
|
||||
}
|
||||
}
|
||||
|
||||
private float m_terrainRaiseLimit;
|
||||
|
||||
public float terrainRaiseLimit
|
||||
|
||||
Reference in New Issue
Block a user