aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/OptionalModules/World/NPC/Tests
diff options
context:
space:
mode:
authorJustin Clark-Casey (justincc)2011-08-03 23:40:05 +0100
committerJustin Clark-Casey (justincc)2011-08-03 23:40:05 +0100
commit31fb6b2d72081a7ab27199f57e6a40fc1e478bc2 (patch)
tree4e4160247f868de2202b5bc5a25d3342a542ead5 /OpenSim/Region/OptionalModules/World/NPC/Tests
parentrename NPC.Autopilot to NPC.MoveToTarget internally. Add method doc to INPCM... (diff)
downloadopensim-SC-31fb6b2d72081a7ab27199f57e6a40fc1e478bc2.zip
opensim-SC-31fb6b2d72081a7ab27199f57e6a40fc1e478bc2.tar.gz
opensim-SC-31fb6b2d72081a7ab27199f57e6a40fc1e478bc2.tar.bz2
opensim-SC-31fb6b2d72081a7ab27199f57e6a40fc1e478bc2.tar.xz
remove move to duck walk compensation - no longer required.
extends npc move to regression test to check stop after sufficient sim updates
Diffstat (limited to 'OpenSim/Region/OptionalModules/World/NPC/Tests')
-rw-r--r--OpenSim/Region/OptionalModules/World/NPC/Tests/NPCModuleTests.cs6
1 files changed, 5 insertions, 1 deletions
diff --git a/OpenSim/Region/OptionalModules/World/NPC/Tests/NPCModuleTests.cs b/OpenSim/Region/OptionalModules/World/NPC/Tests/NPCModuleTests.cs
index 2e3d431..57847f7 100644
--- a/OpenSim/Region/OptionalModules/World/NPC/Tests/NPCModuleTests.cs
+++ b/OpenSim/Region/OptionalModules/World/NPC/Tests/NPCModuleTests.cs
@@ -125,7 +125,11 @@ namespace OpenSim.Region.OptionalModules.World.NPC.Tests
125 Assert.That(npc.AbsolutePosition.Z, Is.GreaterThan(startPos.Z)); 125 Assert.That(npc.AbsolutePosition.Z, Is.GreaterThan(startPos.Z));
126 Assert.That(npc.AbsolutePosition.Z, Is.LessThan(targetPos.Z)); 126 Assert.That(npc.AbsolutePosition.Z, Is.LessThan(targetPos.Z));
127 127
128 // Not yet complete 128 for (int i = 0; i < 10; i++)
129 scene.Update();
130
131 double distanceToTarget = Util.GetDistanceTo(npc.AbsolutePosition, targetPos);
132 Assert.That(distanceToTarget, Is.LessThan(1), "NPC not within 1 unit of target position");
129 } 133 }
130 } 134 }
131} \ No newline at end of file 135} \ No newline at end of file