aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/OptionalModules/Scripting/ExtendedPhysics
diff options
context:
space:
mode:
authorRobert Adams2013-02-08 15:25:57 -0800
committerRobert Adams2013-02-08 16:29:40 -0800
commit1b55a9d81e66972312fdc801d17da697466f9ed4 (patch)
tree32c478526da580deb85a5a1218434e8e21173cd1 /OpenSim/Region/OptionalModules/Scripting/ExtendedPhysics
parentBulletSim: add initial instance of the ExtendedPhysics region module which ad... (diff)
downloadopensim-SC_OLD-1b55a9d81e66972312fdc801d17da697466f9ed4.zip
opensim-SC_OLD-1b55a9d81e66972312fdc801d17da697466f9ed4.tar.gz
opensim-SC_OLD-1b55a9d81e66972312fdc801d17da697466f9ed4.tar.bz2
opensim-SC_OLD-1b55a9d81e66972312fdc801d17da697466f9ed4.tar.xz
BulletSim: fix avatar bobbing or jiggling while stationary flying.
Various comments and debugging message mods.
Diffstat (limited to 'OpenSim/Region/OptionalModules/Scripting/ExtendedPhysics')
-rwxr-xr-xOpenSim/Region/OptionalModules/Scripting/ExtendedPhysics/ExtendedPhysics.cs10
1 files changed, 9 insertions, 1 deletions
diff --git a/OpenSim/Region/OptionalModules/Scripting/ExtendedPhysics/ExtendedPhysics.cs b/OpenSim/Region/OptionalModules/Scripting/ExtendedPhysics/ExtendedPhysics.cs
index aaa349f..6009dc5 100755
--- a/OpenSim/Region/OptionalModules/Scripting/ExtendedPhysics/ExtendedPhysics.cs
+++ b/OpenSim/Region/OptionalModules/Scripting/ExtendedPhysics/ExtendedPhysics.cs
@@ -77,13 +77,14 @@ public class ExtendedPhysics : INonSharedRegionModule
77 m_log.ErrorFormat("{0} Initialization error: {0}", LogHeader, e); 77 m_log.ErrorFormat("{0} Initialization error: {0}", LogHeader, e);
78 } 78 }
79 79
80 m_log.ErrorFormat("{0} module {1} enabled", LogHeader, (Enabled ? "is" : "is not")); 80 m_log.InfoFormat("{0} module {1} enabled", LogHeader, (Enabled ? "is" : "is not"));
81 } 81 }
82 82
83 public void Close() 83 public void Close()
84 { 84 {
85 if (BaseScene != null) 85 if (BaseScene != null)
86 { 86 {
87 BaseScene.EventManager.OnObjectAddedToScene -= EventManager_OnObjectAddedToScene;
87 BaseScene.EventManager.OnSceneObjectPartUpdated -= EventManager_OnSceneObjectPartUpdated; 88 BaseScene.EventManager.OnSceneObjectPartUpdated -= EventManager_OnSceneObjectPartUpdated;
88 BaseScene = null; 89 BaseScene = null;
89 } 90 }
@@ -120,13 +121,20 @@ public class ExtendedPhysics : INonSharedRegionModule
120 Comms.RegisterScriptInvocations(this); 121 Comms.RegisterScriptInvocations(this);
121 122
122 // When an object is modified, we might need to update its extended physics parameters 123 // When an object is modified, we might need to update its extended physics parameters
124 BaseScene.EventManager.OnObjectAddedToScene += EventManager_OnObjectAddedToScene;
123 BaseScene.EventManager.OnSceneObjectPartUpdated += EventManager_OnSceneObjectPartUpdated; 125 BaseScene.EventManager.OnSceneObjectPartUpdated += EventManager_OnSceneObjectPartUpdated;
126
124 } 127 }
125 128
126 public Type ReplaceableInterface { get { return null; } } 129 public Type ReplaceableInterface { get { return null; } }
127 130
128 #endregion // INonSharedRegionModule 131 #endregion // INonSharedRegionModule
129 132
133 private void EventManager_OnObjectAddedToScene(SceneObjectGroup obj)
134 {
135 throw new NotImplementedException();
136 }
137
130 // Event generated when some property of a prim changes. 138 // Event generated when some property of a prim changes.
131 private void EventManager_OnSceneObjectPartUpdated(SceneObjectPart sop, bool isFullUpdate) 139 private void EventManager_OnSceneObjectPartUpdated(SceneObjectPart sop, bool isFullUpdate)
132 { 140 {