aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/src/world/PhysicsEngine.cs
diff options
context:
space:
mode:
authorgareth2007-03-04 01:57:52 +0000
committergareth2007-03-04 01:57:52 +0000
commit412d7e098c424745c0c2ae1a6526c5b5d58b3180 (patch)
treeadf1e02de27534503dcb3f7b4619d89366c2b8a5 /src/world/PhysicsEngine.cs
parentKeeping the MSVC project file up to date (diff)
downloadopensim-SC-412d7e098c424745c0c2ae1a6526c5b5d58b3180.zip
opensim-SC-412d7e098c424745c0c2ae1a6526c5b5d58b3180.tar.gz
opensim-SC-412d7e098c424745c0c2ae1a6526c5b5d58b3180.tar.bz2
opensim-SC-412d7e098c424745c0c2ae1a6526c5b5d58b3180.tar.xz
Fixed up bugs from patch in PREV:
Slow movement of avatar FIXED Constant TerseObjectUpdates FIXED Moving out of sim FIXED
Diffstat (limited to '')
-rw-r--r--src/world/PhysicsEngine.cs11
1 files changed, 6 insertions, 5 deletions
diff --git a/src/world/PhysicsEngine.cs b/src/world/PhysicsEngine.cs
index a789828..d9351af 100644
--- a/src/world/PhysicsEngine.cs
+++ b/src/world/PhysicsEngine.cs
@@ -20,11 +20,12 @@ namespace OpenSim.world
20 public void DoStuff(World simworld) { 20 public void DoStuff(World simworld) {
21 foreach (libsecondlife.LLUUID UUID in simworld.Entities.Keys) 21 foreach (libsecondlife.LLUUID UUID in simworld.Entities.Keys)
22 { 22 {
23 if( true /* simworld.Entities[UUID].needupdate */) { // FIXME! 23 if((simworld.Entities[UUID].position.X>0) & (simworld.Entities[UUID].position.X<256) & (simworld.Entities[UUID].position.Y>1) & (simworld.Entities[UUID].position.Y<256)) {
24 simworld.Entities[UUID].position += simworld.Entities[UUID].velocity; 24 simworld.Entities[UUID].position += simworld.Entities[UUID].velocity;
25 Console.WriteLine("Moving "+UUID.ToString()+ " to "+ simworld.Entities[UUID].position.ToString()); 25 simworld.Entities[UUID].position.Z = simworld.LandMap[(int)simworld.Entities[UUID].position.Y * 256 + (int)simworld.Entities[UUID].position.X]+1;
26 } 26 } else {
27 27 simworld.Entities[UUID].velocity = new LLVector3(0f,0f,0f);
28 }
28 } 29 }
29 } 30 }
30 } 31 }