remove move to duck walk compensation - no longer required.

extends npc move to regression test to check stop after sufficient sim updates
This commit is contained in:
Justin Clark-Casey (justincc)
2011-08-03 23:40:05 +01:00
parent 61d49d4f63
commit 31fb6b2d72
2 changed files with 17 additions and 13 deletions

View File

@@ -125,7 +125,11 @@ namespace OpenSim.Region.OptionalModules.World.NPC.Tests
Assert.That(npc.AbsolutePosition.Z, Is.GreaterThan(startPos.Z));
Assert.That(npc.AbsolutePosition.Z, Is.LessThan(targetPos.Z));
// Not yet complete
for (int i = 0; i < 10; i++)
scene.Update();
double distanceToTarget = Util.GetDistanceTo(npc.AbsolutePosition, targetPos);
Assert.That(distanceToTarget, Is.LessThan(1), "NPC not within 1 unit of target position");
}
}
}