diff options
Diffstat (limited to 'OpenSim/Region/Physics/OdePlugin/ODECharacter.cs')
-rw-r--r-- | OpenSim/Region/Physics/OdePlugin/ODECharacter.cs | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/OpenSim/Region/Physics/OdePlugin/ODECharacter.cs b/OpenSim/Region/Physics/OdePlugin/ODECharacter.cs index c37d588..20bc7f6 100644 --- a/OpenSim/Region/Physics/OdePlugin/ODECharacter.cs +++ b/OpenSim/Region/Physics/OdePlugin/ODECharacter.cs | |||
@@ -123,9 +123,6 @@ namespace OpenSim.Region.Physics.OdePlugin | |||
123 | private float m_buoyancy = 0f; | 123 | private float m_buoyancy = 0f; |
124 | 124 | ||
125 | // private CollisionLocker ode; | 125 | // private CollisionLocker ode; |
126 | |||
127 | private string m_name = String.Empty; | ||
128 | |||
129 | private bool[] m_colliderarr = new bool[11]; | 126 | private bool[] m_colliderarr = new bool[11]; |
130 | private bool[] m_colliderGroundarr = new bool[11]; | 127 | private bool[] m_colliderGroundarr = new bool[11]; |
131 | 128 | ||
@@ -212,7 +209,7 @@ namespace OpenSim.Region.Physics.OdePlugin | |||
212 | 209 | ||
213 | _parent_scene.AddPhysicsActorTaint(this); | 210 | _parent_scene.AddPhysicsActorTaint(this); |
214 | 211 | ||
215 | m_name = avName; | 212 | Name = avName; |
216 | } | 213 | } |
217 | 214 | ||
218 | public override int PhysicsActorType | 215 | public override int PhysicsActorType |
@@ -1068,7 +1065,7 @@ namespace OpenSim.Region.Physics.OdePlugin | |||
1068 | _parent_scene.BadCharacter(this); | 1065 | _parent_scene.BadCharacter(this); |
1069 | newPos = new d.Vector3(_position.X, _position.Y, _position.Z); | 1066 | newPos = new d.Vector3(_position.X, _position.Y, _position.Z); |
1070 | base.RaiseOutOfBounds(_position); // Tells ScenePresence that there's a problem! | 1067 | base.RaiseOutOfBounds(_position); // Tells ScenePresence that there's a problem! |
1071 | m_log.WarnFormat("[ODEPLUGIN]: Avatar Null reference for Avatar {0}, physical actor {1}", m_name, m_uuid); | 1068 | m_log.WarnFormat("[ODEPLUGIN]: Avatar Null reference for Avatar {0}, physical actor {1}", Name, m_uuid); |
1072 | } | 1069 | } |
1073 | 1070 | ||
1074 | // kluge to keep things in bounds. ODE lets dead avatars drift away (they should be removed!) | 1071 | // kluge to keep things in bounds. ODE lets dead avatars drift away (they should be removed!) |
@@ -1284,8 +1281,8 @@ namespace OpenSim.Region.Physics.OdePlugin | |||
1284 | } | 1281 | } |
1285 | AvatarGeomAndBodyCreation(_position.X, _position.Y, _position.Z, m_tensor); | 1282 | AvatarGeomAndBodyCreation(_position.X, _position.Y, _position.Z, m_tensor); |
1286 | 1283 | ||
1287 | _parent_scene.geom_name_map[Shell] = m_name; | 1284 | _parent_scene.geom_name_map[Shell] = Name; |
1288 | _parent_scene.actor_name_map[Shell] = (PhysicsActor)this; | 1285 | _parent_scene.actor_name_map[Shell] = this; |
1289 | _parent_scene.AddCharacter(this); | 1286 | _parent_scene.AddCharacter(this); |
1290 | } | 1287 | } |
1291 | else | 1288 | else |
@@ -1320,7 +1317,7 @@ namespace OpenSim.Region.Physics.OdePlugin | |||
1320 | // appear to stall initial region crossings when done here. Being done for consistency. | 1317 | // appear to stall initial region crossings when done here. Being done for consistency. |
1321 | // Velocity = Vector3.Zero; | 1318 | // Velocity = Vector3.Zero; |
1322 | 1319 | ||
1323 | _parent_scene.geom_name_map[Shell] = m_name; | 1320 | _parent_scene.geom_name_map[Shell] = Name; |
1324 | _parent_scene.actor_name_map[Shell] = (PhysicsActor)this; | 1321 | _parent_scene.actor_name_map[Shell] = (PhysicsActor)this; |
1325 | } | 1322 | } |
1326 | else | 1323 | else |