diff options
Diffstat (limited to '')
-rw-r--r-- | OpenSim/Region/PhysicsModules/SharedBase/PhysicsScene.cs (renamed from OpenSim/Region/Physics/Manager/PhysicsScene.cs) | 23 |
1 files changed, 10 insertions, 13 deletions
diff --git a/OpenSim/Region/Physics/Manager/PhysicsScene.cs b/OpenSim/Region/PhysicsModules/SharedBase/PhysicsScene.cs index a9b30e1..1c0ad20 100644 --- a/OpenSim/Region/Physics/Manager/PhysicsScene.cs +++ b/OpenSim/Region/PhysicsModules/SharedBase/PhysicsScene.cs | |||
@@ -35,7 +35,7 @@ using Nini.Config; | |||
35 | using OpenSim.Framework; | 35 | using OpenSim.Framework; |
36 | using OpenMetaverse; | 36 | using OpenMetaverse; |
37 | 37 | ||
38 | namespace OpenSim.Region.Physics.Manager | 38 | namespace OpenSim.Region.PhysicsModules.SharedBase |
39 | { | 39 | { |
40 | public delegate void physicsCrash(); | 40 | public delegate void physicsCrash(); |
41 | 41 | ||
@@ -104,7 +104,7 @@ namespace OpenSim.Region.Physics.Manager | |||
104 | /// Useful in debug messages to distinguish one OdeScene instance from another. | 104 | /// Useful in debug messages to distinguish one OdeScene instance from another. |
105 | /// Usually set to include the region name that the physics engine is acting for. | 105 | /// Usually set to include the region name that the physics engine is acting for. |
106 | /// </summary> | 106 | /// </summary> |
107 | public string Name { get; protected set; } | 107 | public string PhysicsSceneName { get; protected set; } |
108 | 108 | ||
109 | /// <summary> | 109 | /// <summary> |
110 | /// A string identifying the family of this physics engine. Most common values returned | 110 | /// A string identifying the family of this physics engine. Most common values returned |
@@ -123,6 +123,14 @@ namespace OpenSim.Region.Physics.Manager | |||
123 | 123 | ||
124 | public RequestAssetDelegate RequestAssetMethod { get; set; } | 124 | public RequestAssetDelegate RequestAssetMethod { get; set; } |
125 | 125 | ||
126 | protected void Initialise(RequestAssetDelegate m, float[] terrain, float waterHeight) | ||
127 | { | ||
128 | RequestAssetMethod = m; | ||
129 | SetTerrain(terrain); | ||
130 | SetWaterLevel(waterHeight); | ||
131 | |||
132 | } | ||
133 | |||
126 | public virtual void TriggerPhysicsBasedRestart() | 134 | public virtual void TriggerPhysicsBasedRestart() |
127 | { | 135 | { |
128 | physicsCrash handler = OnPhysicsCrash; | 136 | physicsCrash handler = OnPhysicsCrash; |
@@ -132,17 +140,6 @@ namespace OpenSim.Region.Physics.Manager | |||
132 | } | 140 | } |
133 | } | 141 | } |
134 | 142 | ||
135 | // Deprecated. Do not use this for new physics engines. | ||
136 | public abstract void Initialise(IMesher meshmerizer, IConfigSource config); | ||
137 | |||
138 | // For older physics engines that do not implement non-legacy region sizes. | ||
139 | // If the physics engine handles the region extent feature, it overrides this function. | ||
140 | public virtual void Initialise(IMesher meshmerizer, IConfigSource config, Vector3 regionExtent) | ||
141 | { | ||
142 | // If not overridden, call the old initialization entry. | ||
143 | Initialise(meshmerizer, config); | ||
144 | } | ||
145 | |||
146 | /// <summary> | 143 | /// <summary> |
147 | /// Add an avatar | 144 | /// Add an avatar |
148 | /// </summary> | 145 | /// </summary> |