aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Physics/Manager
diff options
context:
space:
mode:
authorTeravus Ovares2007-11-16 08:53:37 +0000
committerTeravus Ovares2007-11-16 08:53:37 +0000
commitb63076c303c380ac119cb608499b9ac54d524f05 (patch)
treea40395caef9d3b9bd0a24773e9b65bc10928fd3e /OpenSim/Region/Physics/Manager
parent* Fixed object edit movements causing full object updates instead of terse ob... (diff)
downloadopensim-SC_OLD-b63076c303c380ac119cb608499b9ac54d524f05.zip
opensim-SC_OLD-b63076c303c380ac119cb608499b9ac54d524f05.tar.gz
opensim-SC_OLD-b63076c303c380ac119cb608499b9ac54d524f05.tar.bz2
opensim-SC_OLD-b63076c303c380ac119cb608499b9ac54d524f05.tar.xz
* ODE step two on the way to separate dynamic space allocation ( One more to go )
Diffstat (limited to 'OpenSim/Region/Physics/Manager')
-rw-r--r--OpenSim/Region/Physics/Manager/PhysicsActor.cs14
1 files changed, 14 insertions, 0 deletions
diff --git a/OpenSim/Region/Physics/Manager/PhysicsActor.cs b/OpenSim/Region/Physics/Manager/PhysicsActor.cs
index 84b451f..cdb5ae2 100644
--- a/OpenSim/Region/Physics/Manager/PhysicsActor.cs
+++ b/OpenSim/Region/Physics/Manager/PhysicsActor.cs
@@ -99,6 +99,7 @@ namespace OpenSim.Region.Physics.Manager
99 { 99 {
100 public delegate void RequestTerseUpdate(); 100 public delegate void RequestTerseUpdate();
101 public delegate void CollisionUpdate(EventArgs e); 101 public delegate void CollisionUpdate(EventArgs e);
102 public delegate void OutOfBounds(PhysicsVector pos);
102 103
103#pragma warning disable 67 104#pragma warning disable 67
104 public event PositionUpdate OnPositionUpdate; 105 public event PositionUpdate OnPositionUpdate;
@@ -106,6 +107,7 @@ namespace OpenSim.Region.Physics.Manager
106 public event OrientationUpdate OnOrientationUpdate; 107 public event OrientationUpdate OnOrientationUpdate;
107 public event RequestTerseUpdate OnRequestTerseUpdate; 108 public event RequestTerseUpdate OnRequestTerseUpdate;
108 public event CollisionUpdate OnCollisionUpdate; 109 public event CollisionUpdate OnCollisionUpdate;
110 public event OutOfBounds OnOutOfBounds;
109#pragma warning restore 67 111#pragma warning restore 67
110 112
111 public static PhysicsActor Null 113 public static PhysicsActor Null
@@ -131,6 +133,18 @@ namespace OpenSim.Region.Physics.Manager
131 } 133 }
132 134
133 } 135 }
136 public virtual void RaiseOutOfBounds(PhysicsVector pos)
137 {
138 // Make a temporary copy of the event to avoid possibility of
139 // a race condition if the last subscriber unsubscribes
140 // immediately after the null check and before the event is raised.
141 OutOfBounds handler = OnOutOfBounds;
142 if (handler != null)
143 {
144 OnOutOfBounds(pos);
145 }
146
147 }
134 public virtual void SendCollisionUpdate(EventArgs e) 148 public virtual void SendCollisionUpdate(EventArgs e)
135 { 149 {
136 CollisionUpdate handler = OnCollisionUpdate; 150 CollisionUpdate handler = OnCollisionUpdate;