diff options
Diffstat (limited to '')
-rw-r--r-- | OpenSim/Region/PhysicsModules/SharedBase/AssemblyInfo.cs (renamed from OpenSim/Region/Physics/Manager/AssemblyInfo.cs) | 0 | ||||
-rw-r--r-- | OpenSim/Region/PhysicsModules/SharedBase/CollisionLocker.cs (renamed from OpenSim/Region/Physics/Manager/CollisionLocker.cs) | 2 | ||||
-rw-r--r-- | OpenSim/Region/PhysicsModules/SharedBase/IMesher.cs (renamed from OpenSim/Region/Physics/Manager/IMesher.cs) | 2 | ||||
-rwxr-xr-x | OpenSim/Region/PhysicsModules/SharedBase/IPhysicsParameters.cs (renamed from OpenSim/Region/Physics/Manager/IPhysicsParameters.cs) | 2 | ||||
-rw-r--r-- | OpenSim/Region/PhysicsModules/SharedBase/NullPhysicsScene.cs (renamed from OpenSim/Region/Physics/Manager/NullPhysicsScene.cs) | 7 | ||||
-rw-r--r-- | OpenSim/Region/PhysicsModules/SharedBase/PhysicsActor.cs (renamed from OpenSim/Region/Physics/Manager/PhysicsActor.cs) | 2 | ||||
-rw-r--r-- | OpenSim/Region/PhysicsModules/SharedBase/PhysicsJoint.cs (renamed from OpenSim/Region/Physics/Manager/PhysicsJoint.cs) | 2 | ||||
-rw-r--r-- | OpenSim/Region/PhysicsModules/SharedBase/PhysicsScene.cs (renamed from OpenSim/Region/Physics/Manager/PhysicsScene.cs) | 23 | ||||
-rw-r--r-- | OpenSim/Region/PhysicsModules/SharedBase/PhysicsSensor.cs (renamed from OpenSim/Region/Physics/Manager/PhysicsSensor.cs) | 2 | ||||
-rw-r--r-- | OpenSim/Region/PhysicsModules/SharedBase/PhysicsVector.cs (renamed from OpenSim/Region/Physics/Manager/PhysicsVector.cs) | 2 | ||||
-rw-r--r-- | OpenSim/Region/PhysicsModules/SharedBase/VehicleConstants.cs (renamed from OpenSim/Region/Physics/Manager/VehicleConstants.cs) | 2 |
11 files changed, 19 insertions, 27 deletions
diff --git a/OpenSim/Region/Physics/Manager/AssemblyInfo.cs b/OpenSim/Region/PhysicsModules/SharedBase/AssemblyInfo.cs index 33f60e4..33f60e4 100644 --- a/OpenSim/Region/Physics/Manager/AssemblyInfo.cs +++ b/OpenSim/Region/PhysicsModules/SharedBase/AssemblyInfo.cs | |||
diff --git a/OpenSim/Region/Physics/Manager/CollisionLocker.cs b/OpenSim/Region/PhysicsModules/SharedBase/CollisionLocker.cs index cace4e4..6e658b5 100644 --- a/OpenSim/Region/Physics/Manager/CollisionLocker.cs +++ b/OpenSim/Region/PhysicsModules/SharedBase/CollisionLocker.cs | |||
@@ -28,7 +28,7 @@ | |||
28 | using System; | 28 | using System; |
29 | using System.Collections.Generic; | 29 | using System.Collections.Generic; |
30 | 30 | ||
31 | namespace OpenSim.Region.Physics.Manager | 31 | namespace OpenSim.Region.PhysicsModules.SharedBase |
32 | { | 32 | { |
33 | public class CollisionLocker | 33 | public class CollisionLocker |
34 | { | 34 | { |
diff --git a/OpenSim/Region/Physics/Manager/IMesher.cs b/OpenSim/Region/PhysicsModules/SharedBase/IMesher.cs index e290dc9..88169bb 100644 --- a/OpenSim/Region/Physics/Manager/IMesher.cs +++ b/OpenSim/Region/PhysicsModules/SharedBase/IMesher.cs | |||
@@ -31,7 +31,7 @@ using System.Runtime.InteropServices; | |||
31 | using OpenSim.Framework; | 31 | using OpenSim.Framework; |
32 | using OpenMetaverse; | 32 | using OpenMetaverse; |
33 | 33 | ||
34 | namespace OpenSim.Region.Physics.Manager | 34 | namespace OpenSim.Region.PhysicsModules.SharedBase |
35 | { | 35 | { |
36 | public interface IMesher | 36 | public interface IMesher |
37 | { | 37 | { |
diff --git a/OpenSim/Region/Physics/Manager/IPhysicsParameters.cs b/OpenSim/Region/PhysicsModules/SharedBase/IPhysicsParameters.cs index 31a397c..fb0c9e2 100755 --- a/OpenSim/Region/Physics/Manager/IPhysicsParameters.cs +++ b/OpenSim/Region/PhysicsModules/SharedBase/IPhysicsParameters.cs | |||
@@ -30,7 +30,7 @@ using System.Collections.Generic; | |||
30 | using OpenSim.Framework; | 30 | using OpenSim.Framework; |
31 | using OpenMetaverse; | 31 | using OpenMetaverse; |
32 | 32 | ||
33 | namespace OpenSim.Region.Physics.Manager | 33 | namespace OpenSim.Region.PhysicsModules.SharedBase |
34 | { | 34 | { |
35 | public struct PhysParameterEntry | 35 | public struct PhysParameterEntry |
36 | { | 36 | { |
diff --git a/OpenSim/Region/Physics/Manager/NullPhysicsScene.cs b/OpenSim/Region/PhysicsModules/SharedBase/NullPhysicsScene.cs index b52f1f6..432708c 100644 --- a/OpenSim/Region/Physics/Manager/NullPhysicsScene.cs +++ b/OpenSim/Region/PhysicsModules/SharedBase/NullPhysicsScene.cs | |||
@@ -32,7 +32,7 @@ using Nini.Config; | |||
32 | using OpenSim.Framework; | 32 | using OpenSim.Framework; |
33 | using OpenMetaverse; | 33 | using OpenMetaverse; |
34 | 34 | ||
35 | namespace OpenSim.Region.Physics.Manager | 35 | namespace OpenSim.Region.PhysicsModules.SharedBase |
36 | { | 36 | { |
37 | class NullPhysicsScene : PhysicsScene | 37 | class NullPhysicsScene : PhysicsScene |
38 | { | 38 | { |
@@ -40,11 +40,6 @@ namespace OpenSim.Region.Physics.Manager | |||
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/Physics/Manager/PhysicsActor.cs b/OpenSim/Region/PhysicsModules/SharedBase/PhysicsActor.cs index 60f6480..edc41e4 100644 --- a/OpenSim/Region/Physics/Manager/PhysicsActor.cs +++ b/OpenSim/Region/PhysicsModules/SharedBase/PhysicsActor.cs | |||
@@ -32,7 +32,7 @@ using System.Reflection; | |||
32 | using OpenSim.Framework; | 32 | using OpenSim.Framework; |
33 | using OpenMetaverse; | 33 | using OpenMetaverse; |
34 | 34 | ||
35 | namespace OpenSim.Region.Physics.Manager | 35 | namespace OpenSim.Region.PhysicsModules.SharedBase |
36 | { | 36 | { |
37 | public delegate void PositionUpdate(Vector3 position); | 37 | public delegate void PositionUpdate(Vector3 position); |
38 | public delegate void VelocityUpdate(Vector3 velocity); | 38 | public delegate void VelocityUpdate(Vector3 velocity); |
diff --git a/OpenSim/Region/Physics/Manager/PhysicsJoint.cs b/OpenSim/Region/PhysicsModules/SharedBase/PhysicsJoint.cs index b685d04..ce2bf05 100644 --- a/OpenSim/Region/Physics/Manager/PhysicsJoint.cs +++ b/OpenSim/Region/PhysicsModules/SharedBase/PhysicsJoint.cs | |||
@@ -30,7 +30,7 @@ using System.Collections.Generic; | |||
30 | using OpenSim.Framework; | 30 | using OpenSim.Framework; |
31 | using OpenMetaverse; | 31 | using OpenMetaverse; |
32 | 32 | ||
33 | namespace OpenSim.Region.Physics.Manager | 33 | namespace OpenSim.Region.PhysicsModules.SharedBase |
34 | { | 34 | { |
35 | public enum PhysicsJointType : int | 35 | public enum PhysicsJointType : int |
36 | { | 36 | { |
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> |
diff --git a/OpenSim/Region/Physics/Manager/PhysicsSensor.cs b/OpenSim/Region/PhysicsModules/SharedBase/PhysicsSensor.cs index f480d71..da9c96c 100644 --- a/OpenSim/Region/Physics/Manager/PhysicsSensor.cs +++ b/OpenSim/Region/PhysicsModules/SharedBase/PhysicsSensor.cs | |||
@@ -29,7 +29,7 @@ using System; | |||
29 | using System.Timers; | 29 | using System.Timers; |
30 | using OpenMetaverse; | 30 | using OpenMetaverse; |
31 | 31 | ||
32 | namespace OpenSim.Region.Physics.Manager | 32 | namespace OpenSim.Region.PhysicsModules.SharedBase |
33 | { | 33 | { |
34 | [Flags] | 34 | [Flags] |
35 | public enum SenseType : uint | 35 | public enum SenseType : uint |
diff --git a/OpenSim/Region/Physics/Manager/PhysicsVector.cs b/OpenSim/Region/PhysicsModules/SharedBase/PhysicsVector.cs index f60a636..76a82fa 100644 --- a/OpenSim/Region/Physics/Manager/PhysicsVector.cs +++ b/OpenSim/Region/PhysicsModules/SharedBase/PhysicsVector.cs | |||
@@ -27,7 +27,7 @@ | |||
27 | 27 | ||
28 | using System; | 28 | using System; |
29 | 29 | ||
30 | namespace OpenSim.Region.Physics.Manager | 30 | namespace OpenSim.Region.PhysicsModules.SharedBase |
31 | { | 31 | { |
32 | /*public class PhysicsVector | 32 | /*public class PhysicsVector |
33 | { | 33 | { |
diff --git a/OpenSim/Region/Physics/Manager/VehicleConstants.cs b/OpenSim/Region/PhysicsModules/SharedBase/VehicleConstants.cs index 8e24b4c..e850b11 100644 --- a/OpenSim/Region/Physics/Manager/VehicleConstants.cs +++ b/OpenSim/Region/PhysicsModules/SharedBase/VehicleConstants.cs | |||
@@ -28,7 +28,7 @@ | |||
28 | using System; | 28 | using System; |
29 | using OpenMetaverse; | 29 | using OpenMetaverse; |
30 | 30 | ||
31 | namespace OpenSim.Region.Physics.Manager | 31 | namespace OpenSim.Region.PhysicsModules.SharedBase |
32 | { | 32 | { |
33 | public enum Vehicle : int | 33 | public enum Vehicle : int |
34 | { | 34 | { |