aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Physics/POSPlugin/POSPlugin.cs
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim/Region/Physics/POSPlugin/POSPlugin.cs')
-rw-r--r--OpenSim/Region/Physics/POSPlugin/POSPlugin.cs18
1 files changed, 18 insertions, 0 deletions
diff --git a/OpenSim/Region/Physics/POSPlugin/POSPlugin.cs b/OpenSim/Region/Physics/POSPlugin/POSPlugin.cs
index 6b8db5f..b20dc87 100644
--- a/OpenSim/Region/Physics/POSPlugin/POSPlugin.cs
+++ b/OpenSim/Region/Physics/POSPlugin/POSPlugin.cs
@@ -254,6 +254,24 @@ namespace OpenSim.Region.Physics.POSPlugin
254 } 254 }
255 } 255 }
256 256
257 if (character.Position.Y < 0)
258 {
259 character.Position.Y = 0.1F;
260 }
261 else if (character.Position.Y >= 256)
262 {
263 character.Position.Y = 255.9F;
264 }
265
266 if (character.Position.X < 0)
267 {
268 character.Position.X = 0.1F;
269 }
270 else if (character.Position.X >= 256)
271 {
272 character.Position.X = 255.9F;
273 }
274
257 character._velocity.X = (character.Position.X - oldposX) / timeStep; 275 character._velocity.X = (character.Position.X - oldposX) / timeStep;
258 character._velocity.Y = (character.Position.Y - oldposY) / timeStep; 276 character._velocity.Y = (character.Position.Y - oldposY) / timeStep;
259 277