aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim.Physics
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim.Physics')
-rw-r--r--OpenSim.Physics/BasicPhysicsPlugin/BasicPhysicsPlugin.cs12
1 files changed, 10 insertions, 2 deletions
diff --git a/OpenSim.Physics/BasicPhysicsPlugin/BasicPhysicsPlugin.cs b/OpenSim.Physics/BasicPhysicsPlugin/BasicPhysicsPlugin.cs
index 62b6ffc..26b9565 100644
--- a/OpenSim.Physics/BasicPhysicsPlugin/BasicPhysicsPlugin.cs
+++ b/OpenSim.Physics/BasicPhysicsPlugin/BasicPhysicsPlugin.cs
@@ -109,26 +109,34 @@ namespace OpenSim.Physics.BasicPhysicsPlugin
109 {*/ 109 {*/
110 actor.Position.Z = _heightMap[(int)actor.Position.Y * 256 + (int)actor.Position.X]+1; 110 actor.Position.Z = _heightMap[(int)actor.Position.Y * 256 + (int)actor.Position.X]+1;
111 //} 111 //}
112 if(actor.Position.X<0) 112
113
114
115 // This code needs sorting out - border crossings etc
116/* if(actor.Position.X<0)
113 { 117 {
118 ControllingClient.CrossSimBorder(new LLVector3(this.Position.X,this.Position.Y,this.Position.Z));
114 actor.Position.X = 0; 119 actor.Position.X = 0;
115 actor.Velocity.X = 0; 120 actor.Velocity.X = 0;
116 } 121 }
117 if(actor.Position.Y < 0) 122 if(actor.Position.Y < 0)
118 { 123 {
124 ControllingClient.CrossSimBorder(new LLVector3(this.Position.X,this.Position.Y,this.Position.Z));
119 actor.Position.Y = 0; 125 actor.Position.Y = 0;
120 actor.Velocity.Y = 0; 126 actor.Velocity.Y = 0;
121 } 127 }
122 if(actor.Position.X > 255) 128 if(actor.Position.X > 255)
123 { 129 {
130 ControllingClient.CrossSimBorder(new LLVector3(this.Position.X,this.Position.Y,this.Position.Z));
124 actor.Position.X = 255; 131 actor.Position.X = 255;
125 actor.Velocity.X = 0; 132 actor.Velocity.X = 0;
126 } 133 }
127 if(actor.Position.Y > 255) 134 if(actor.Position.Y > 255)
128 { 135 {
136 ControllingClient.CrossSimBorder(new LLVector3(this.Position.X,this.Position.Y,this.Position.Z));
129 actor.Position.Y = 255; 137 actor.Position.Y = 255;
130 actor.Velocity.X = 0; 138 actor.Velocity.X = 0;
131 } 139 }*/
132 } 140 }
133 } 141 }
134 142