add SP.PhysicsActor checks to other sit/stand tests
parent
acaf6937c5
commit
84ad23234b
|
@ -110,6 +110,7 @@ namespace OpenSim.Region.Framework.Scenes.Tests
|
||||||
|
|
||||||
Assert.That(part.SitTargetAvatar, Is.EqualTo(UUID.Zero));
|
Assert.That(part.SitTargetAvatar, Is.EqualTo(UUID.Zero));
|
||||||
Assert.That(sp.ParentID, Is.EqualTo(part.LocalId));
|
Assert.That(sp.ParentID, Is.EqualTo(part.LocalId));
|
||||||
|
Assert.That(sp.PhysicsActor, Is.Null);
|
||||||
|
|
||||||
// FIXME: This is different for live avatars - z position is adjusted. This is half the height of the
|
// FIXME: This is different for live avatars - z position is adjusted. This is half the height of the
|
||||||
// default avatar.
|
// default avatar.
|
||||||
|
@ -123,6 +124,7 @@ namespace OpenSim.Region.Framework.Scenes.Tests
|
||||||
|
|
||||||
Assert.That(part.SitTargetAvatar, Is.EqualTo(UUID.Zero));
|
Assert.That(part.SitTargetAvatar, Is.EqualTo(UUID.Zero));
|
||||||
Assert.That(sp.ParentID, Is.EqualTo(0));
|
Assert.That(sp.ParentID, Is.EqualTo(0));
|
||||||
|
Assert.That(sp.PhysicsActor, Is.Not.Null);
|
||||||
}
|
}
|
||||||
|
|
||||||
[Test]
|
[Test]
|
||||||
|
@ -147,11 +149,13 @@ namespace OpenSim.Region.Framework.Scenes.Tests
|
||||||
Assert.That(
|
Assert.That(
|
||||||
sp.AbsolutePosition,
|
sp.AbsolutePosition,
|
||||||
Is.EqualTo(part.AbsolutePosition + part.SitTargetPosition + ScenePresence.SIT_TARGET_ADJUSTMENT));
|
Is.EqualTo(part.AbsolutePosition + part.SitTargetPosition + ScenePresence.SIT_TARGET_ADJUSTMENT));
|
||||||
|
Assert.That(sp.PhysicsActor, Is.Null);
|
||||||
|
|
||||||
sp.StandUp();
|
sp.StandUp();
|
||||||
|
|
||||||
Assert.That(part.SitTargetAvatar, Is.EqualTo(UUID.Zero));
|
Assert.That(part.SitTargetAvatar, Is.EqualTo(UUID.Zero));
|
||||||
Assert.That(sp.ParentID, Is.EqualTo(0));
|
Assert.That(sp.ParentID, Is.EqualTo(0));
|
||||||
|
Assert.That(sp.PhysicsActor, Is.Not.Null);
|
||||||
}
|
}
|
||||||
|
|
||||||
[Test]
|
[Test]
|
||||||
|
|
Loading…
Reference in New Issue