Fix TestSitAndStandWithNoSitTarget NPC and SP tests.

These stopped working because current code calculates sit heights based on avatar physics rather than appearance data.
Also changed BasicPhysics to not divide Z param of all set sizes by 2 - there's no obvious good reason for this and basicphysics is only used in tests
This commit is contained in:
Justin Clark-Casey (justincc)
2013-12-14 00:10:32 +00:00
parent 11f177d6a8
commit 54cc229768
3 changed files with 4 additions and 15 deletions

View File

@@ -119,7 +119,7 @@ namespace OpenSim.Region.Framework.Scenes.Tests
// printing out npc.AbsolutePosition will give <0, 0, 0.8454993> not <0, 0, 0.845499337>
Assert.That(
m_sp.AbsolutePosition,
Is.EqualTo(part.AbsolutePosition + new Vector3(0, 0, 0.845499337f)));
Is.EqualTo(part.AbsolutePosition + new Vector3(0, 0, sp.PhysicsActor.Size.Z / 2)));
m_sp.StandUp();