diff options
author | Robert Adams | 2015-09-08 04:54:16 -0700 |
---|---|---|
committer | Robert Adams | 2015-09-08 04:54:16 -0700 |
commit | e5367d822be9b05e74c859afe2d2956a3e95aa33 (patch) | |
tree | e904050a30715df587aa527d7f313755177726a7 /OpenSim/Region/PhysicsModules/SharedBase/PhysicsScene.cs | |
parent | add lost admin_reset_land method (diff) | |
parent | Deleted access control spec from [LoginService] section of standalone config.... (diff) | |
download | opensim-SC-e5367d822be9b05e74c859afe2d2956a3e95aa33.zip opensim-SC-e5367d822be9b05e74c859afe2d2956a3e95aa33.tar.gz opensim-SC-e5367d822be9b05e74c859afe2d2956a3e95aa33.tar.bz2 opensim-SC-e5367d822be9b05e74c859afe2d2956a3e95aa33.tar.xz |
Merge of ubitworkvarnew with opensim/master as of 20150905.
This integrates the OpenSim refactoring to make physics, etc into modules.
AVN physics hasn't been moved to new location.
Does not compile yet.
Merge branch 'osmaster' into mbworknew1
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> |