aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/PhysicsModules/SharedBase
diff options
context:
space:
mode:
authorDiva Canto2015-08-31 13:02:51 -0700
committerDiva Canto2015-08-31 13:02:51 -0700
commit134d4300f0b6e9b0df0326cfe0b5df9f41f42865 (patch)
tree86420f55292ec2f566c10b30cdb52a54e6c0f14c /OpenSim/Region/PhysicsModules/SharedBase
parentFixed a namespace dependency. Also started preparing prebuild.xml for making ... (diff)
downloadopensim-SC-134d4300f0b6e9b0df0326cfe0b5df9f41f42865.zip
opensim-SC-134d4300f0b6e9b0df0326cfe0b5df9f41f42865.tar.gz
opensim-SC-134d4300f0b6e9b0df0326cfe0b5df9f41f42865.tar.bz2
opensim-SC-134d4300f0b6e9b0df0326cfe0b5df9f41f42865.tar.xz
All physics plugins are now region modules. Compiles but doesn't run.
Diffstat (limited to 'OpenSim/Region/PhysicsModules/SharedBase')
-rw-r--r--OpenSim/Region/PhysicsModules/SharedBase/NullPhysicsScene.cs5
-rw-r--r--OpenSim/Region/PhysicsModules/SharedBase/PhysicsPluginManager.cs2
-rw-r--r--OpenSim/Region/PhysicsModules/SharedBase/PhysicsScene.cs13
3 files changed, 2 insertions, 18 deletions
diff --git a/OpenSim/Region/PhysicsModules/SharedBase/NullPhysicsScene.cs b/OpenSim/Region/PhysicsModules/SharedBase/NullPhysicsScene.cs
index da896a3..432708c 100644
--- a/OpenSim/Region/PhysicsModules/SharedBase/NullPhysicsScene.cs
+++ b/OpenSim/Region/PhysicsModules/SharedBase/NullPhysicsScene.cs
@@ -40,11 +40,6 @@ namespace OpenSim.Region.PhysicsModules.SharedBase
40 40
41 private static int m_workIndicator; 41 private static int m_workIndicator;
42 42
43 public override void Initialise(IMesher meshmerizer, IConfigSource config)
44 {
45 // Does nothing right now
46 }
47
48 public override PhysicsActor AddAvatar( 43 public override PhysicsActor AddAvatar(
49 string avName, Vector3 position, Vector3 velocity, Vector3 size, bool isFlying) 44 string avName, Vector3 position, Vector3 velocity, Vector3 size, bool isFlying)
50 { 45 {
diff --git a/OpenSim/Region/PhysicsModules/SharedBase/PhysicsPluginManager.cs b/OpenSim/Region/PhysicsModules/SharedBase/PhysicsPluginManager.cs
index 6316463..487582c 100644
--- a/OpenSim/Region/PhysicsModules/SharedBase/PhysicsPluginManager.cs
+++ b/OpenSim/Region/PhysicsModules/SharedBase/PhysicsPluginManager.cs
@@ -89,7 +89,7 @@ namespace OpenSim.Region.PhysicsModules.SharedBase
89 { 89 {
90 m_log.Info("[PHYSICS]: creating " + physEngineName); 90 m_log.Info("[PHYSICS]: creating " + physEngineName);
91 PhysicsScene result = _PhysPlugins[physEngineName].GetScene(regionName); 91 PhysicsScene result = _PhysPlugins[physEngineName].GetScene(regionName);
92 result.Initialise(meshEngine, config, regionExtent); 92 //result.Initialise(meshEngine, config, regionExtent);
93 return result; 93 return result;
94 } 94 }
95 else 95 else
diff --git a/OpenSim/Region/PhysicsModules/SharedBase/PhysicsScene.cs b/OpenSim/Region/PhysicsModules/SharedBase/PhysicsScene.cs
index 0394494..247f355 100644
--- a/OpenSim/Region/PhysicsModules/SharedBase/PhysicsScene.cs
+++ b/OpenSim/Region/PhysicsModules/SharedBase/PhysicsScene.cs
@@ -98,7 +98,7 @@ namespace OpenSim.Region.PhysicsModules.SharedBase
98 /// Useful in debug messages to distinguish one OdeScene instance from another. 98 /// Useful in debug messages to distinguish one OdeScene instance from another.
99 /// Usually set to include the region name that the physics engine is acting for. 99 /// Usually set to include the region name that the physics engine is acting for.
100 /// </summary> 100 /// </summary>
101 public string Name { get; protected set; } 101 public string PhysicsSceneName { get; protected set; }
102 102
103 /// <summary> 103 /// <summary>
104 /// A string identifying the family of this physics engine. Most common values returned 104 /// A string identifying the family of this physics engine. Most common values returned
@@ -126,17 +126,6 @@ namespace OpenSim.Region.PhysicsModules.SharedBase
126 } 126 }
127 } 127 }
128 128
129 // Deprecated. Do not use this for new physics engines.
130 public abstract void Initialise(IMesher meshmerizer, IConfigSource config);
131
132 // For older physics engines that do not implement non-legacy region sizes.
133 // If the physics engine handles the region extent feature, it overrides this function.
134 public virtual void Initialise(IMesher meshmerizer, IConfigSource config, Vector3 regionExtent)
135 {
136 // If not overridden, call the old initialization entry.
137 Initialise(meshmerizer, config);
138 }
139
140 /// <summary> 129 /// <summary>
141 /// Add an avatar 130 /// Add an avatar
142 /// </summary> 131 /// </summary>