diff options
author | Justin Clarke Casey | 2008-04-23 10:16:26 +0000 |
---|---|---|
committer | Justin Clarke Casey | 2008-04-23 10:16:26 +0000 |
commit | 6efb16689aa2ca364f738342a1173c27fef54b86 (patch) | |
tree | 04471707fbe7b7532981a2bf3be265d0fc1b21ba /OpenSim/Framework | |
parent | * Updated filesystem refs for bamboo.build (diff) | |
download | opensim-SC_OLD-6efb16689aa2ca364f738342a1173c27fef54b86.zip opensim-SC_OLD-6efb16689aa2ca364f738342a1173c27fef54b86.tar.gz opensim-SC_OLD-6efb16689aa2ca364f738342a1173c27fef54b86.tar.bz2 opensim-SC_OLD-6efb16689aa2ca364f738342a1173c27fef54b86.tar.xz |
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
Diffstat (limited to 'OpenSim/Framework')
-rw-r--r-- | OpenSim/Framework/EstateSettings.cs | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/OpenSim/Framework/EstateSettings.cs b/OpenSim/Framework/EstateSettings.cs index 98052fc..efb55fe 100644 --- a/OpenSim/Framework/EstateSettings.cs +++ b/OpenSim/Framework/EstateSettings.cs | |||
@@ -159,6 +159,18 @@ namespace OpenSim.Framework | |||
159 | } | 159 | } |
160 | } | 160 | } |
161 | 161 | ||
162 | private LLVector3 m_sunPosition; | ||
163 | |||
164 | public LLVector3 sunPosition | ||
165 | { | ||
166 | get { return m_sunPosition; } | ||
167 | set | ||
168 | { | ||
169 | //Just set - does not need to be written to settings file | ||
170 | m_sunPosition = value; | ||
171 | } | ||
172 | } | ||
173 | |||
162 | private float m_terrainRaiseLimit; | 174 | private float m_terrainRaiseLimit; |
163 | 175 | ||
164 | public float terrainRaiseLimit | 176 | public float terrainRaiseLimit |