diff options
author | Justin Clark-Casey (justincc) | 2014-07-29 03:13:10 +0100 |
---|---|---|
committer | Justin Clark-Casey (justincc) | 2014-07-29 03:13:10 +0100 |
commit | f54fccba1e436c12e55da9dfa5ca089440783e16 (patch) | |
tree | d49119dd8465109126c2f6add0642fc3e036c58d /OpenSim/Region/Framework/Scenes/Scene.cs | |
parent | Allow the "debug scene set physics false|true" command to work when bulletsim... (diff) | |
download | opensim-SC-f54fccba1e436c12e55da9dfa5ca089440783e16.zip opensim-SC-f54fccba1e436c12e55da9dfa5ca089440783e16.tar.gz opensim-SC-f54fccba1e436c12e55da9dfa5ca089440783e16.tar.bz2 opensim-SC-f54fccba1e436c12e55da9dfa5ca089440783e16.tar.xz |
Make it possible to change avatar position update, rotation and velocity tolerances on the fly.
This is done via "debug scene set client-pos-upd, client-rot-upd, client-vel-upd".
For testing purposes.
Diffstat (limited to 'OpenSim/Region/Framework/Scenes/Scene.cs')
-rw-r--r-- | OpenSim/Region/Framework/Scenes/Scene.cs | 20 |
1 files changed, 19 insertions, 1 deletions
diff --git a/OpenSim/Region/Framework/Scenes/Scene.cs b/OpenSim/Region/Framework/Scenes/Scene.cs index 1639ee4..482e803 100644 --- a/OpenSim/Region/Framework/Scenes/Scene.cs +++ b/OpenSim/Region/Framework/Scenes/Scene.cs | |||
@@ -230,7 +230,22 @@ namespace OpenSim.Region.Framework.Scenes | |||
230 | /// <summary> | 230 | /// <summary> |
231 | /// Temporarily setting to trigger appearance resends at 60 second intervals. | 231 | /// Temporarily setting to trigger appearance resends at 60 second intervals. |
232 | /// </summary> | 232 | /// </summary> |
233 | public bool SendPeriodicAppearanceUpdates { get; set; } | 233 | public bool SendPeriodicAppearanceUpdates { get; set; } |
234 | |||
235 | /// <summary> | ||
236 | /// How much a client has to change position before updates are sent to viewers. | ||
237 | /// </summary> | ||
238 | public float ClientPositionUpdateTolerance { get; set; } | ||
239 | |||
240 | /// <summary> | ||
241 | /// How much a client has to rotate before updates are sent to viewers. | ||
242 | /// </summary> | ||
243 | public float ClientRotationUpdateTolerance { get; set; } | ||
244 | |||
245 | /// <summary> | ||
246 | /// How much a client has to change velocity before updates are sent to viewers. | ||
247 | /// </summary> | ||
248 | public float ClientVelocityUpdateTolerance { get; set; } | ||
234 | 249 | ||
235 | protected float m_defaultDrawDistance = 255.0f; | 250 | protected float m_defaultDrawDistance = 255.0f; |
236 | public float DefaultDrawDistance | 251 | public float DefaultDrawDistance |
@@ -1046,6 +1061,9 @@ namespace OpenSim.Region.Framework.Scenes | |||
1046 | PeriodicBackup = true; | 1061 | PeriodicBackup = true; |
1047 | UseBackup = true; | 1062 | UseBackup = true; |
1048 | 1063 | ||
1064 | ClientRotationUpdateTolerance = 0.01f; | ||
1065 | ClientVelocityUpdateTolerance = 0.001f; | ||
1066 | ClientPositionUpdateTolerance = 0.05f; | ||
1049 | ChildReprioritizationDistance = 20.0; | 1067 | ChildReprioritizationDistance = 20.0; |
1050 | 1068 | ||
1051 | m_eventManager = new EventManager(); | 1069 | m_eventManager = new EventManager(); |