aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Physics
diff options
context:
space:
mode:
authorUbitUmarov2012-02-08 15:28:13 +0000
committerUbitUmarov2012-02-08 15:28:13 +0000
commitc75fa8b8a1c4ba9235074e84f9a363483c5220f7 (patch)
tree10ecaf4a28aa610c218e36b7527da8f01cac6e5a /OpenSim/Region/Physics
parentUbitODE plugin initial commit (diff)
downloadopensim-SC_OLD-c75fa8b8a1c4ba9235074e84f9a363483c5220f7.zip
opensim-SC_OLD-c75fa8b8a1c4ba9235074e84f9a363483c5220f7.tar.gz
opensim-SC_OLD-c75fa8b8a1c4ba9235074e84f9a363483c5220f7.tar.bz2
opensim-SC_OLD-c75fa8b8a1c4ba9235074e84f9a363483c5220f7.tar.xz
changes in physics manager, needed for UbitODE
Diffstat (limited to 'OpenSim/Region/Physics')
-rw-r--r--OpenSim/Region/Physics/Manager/PhysicsActor.cs19
-rw-r--r--OpenSim/Region/Physics/Manager/PhysicsScene.cs10
2 files changed, 28 insertions, 1 deletions
diff --git a/OpenSim/Region/Physics/Manager/PhysicsActor.cs b/OpenSim/Region/Physics/Manager/PhysicsActor.cs
index 0587054..e1a68be 100644
--- a/OpenSim/Region/Physics/Manager/PhysicsActor.cs
+++ b/OpenSim/Region/Physics/Manager/PhysicsActor.cs
@@ -68,6 +68,17 @@ namespace OpenSim.Region.Physics.Manager
68 } 68 }
69 } 69 }
70 70
71 public struct ContactData
72 {
73 public float mu;
74 public float bounce;
75
76 public ContactData(float _mu, float _bounce)
77 {
78 mu = _mu;
79 bounce = _bounce;
80 }
81 }
71 /// <summary> 82 /// <summary>
72 /// Used to pass collision information to OnCollisionUpdate listeners. 83 /// Used to pass collision information to OnCollisionUpdate listeners.
73 /// </summary> 84 /// </summary>
@@ -143,6 +154,14 @@ namespace OpenSim.Region.Physics.Manager
143 get { return new NullPhysicsActor(); } 154 get { return new NullPhysicsActor(); }
144 } 155 }
145 156
157
158 public virtual bool Building { get; set; }
159
160 public virtual ContactData ContactData
161 {
162 get { return new ContactData(0, 0); }
163 }
164
146 public abstract bool Stopped { get; } 165 public abstract bool Stopped { get; }
147 166
148 public abstract Vector3 Size { get; set; } 167 public abstract Vector3 Size { get; set; }
diff --git a/OpenSim/Region/Physics/Manager/PhysicsScene.cs b/OpenSim/Region/Physics/Manager/PhysicsScene.cs
index 514d9ad..3db71e5 100644
--- a/OpenSim/Region/Physics/Manager/PhysicsScene.cs
+++ b/OpenSim/Region/Physics/Manager/PhysicsScene.cs
@@ -225,7 +225,7 @@ namespace OpenSim.Region.Physics.Manager
225 } 225 }
226 226
227 public virtual void Combine(PhysicsScene pScene, Vector3 offset, Vector3 extents) {} 227 public virtual void Combine(PhysicsScene pScene, Vector3 offset, Vector3 extents) {}
228 228 public virtual void CombineTerrain(float[] heightMap, Vector3 pOffset) {}
229 public virtual void UnCombine(PhysicsScene pScene) {} 229 public virtual void UnCombine(PhysicsScene pScene) {}
230 230
231 /// <summary> 231 /// <summary>
@@ -263,5 +263,13 @@ namespace OpenSim.Region.Physics.Manager
263 { 263 {
264 return new List<ContactResult>(); 264 return new List<ContactResult>();
265 } 265 }
266
267 public virtual void RaycastActor(PhysicsActor actor, Vector3 position, Vector3 direction, float length, RaycastCallback retMethod){}
268 public virtual void RaycastActor(PhysicsActor actor, Vector3 position, Vector3 direction, float length, int Count, RayCallback retMethod) { }
269 public virtual List<ContactResult> RaycastActor(PhysicsActor actor, Vector3 position, Vector3 direction, float length, int Count)
270 {
271 return new List<ContactResult>();
272 }
273
266 } 274 }
267} 275}