aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim
diff options
context:
space:
mode:
authorJustin Clark-Casey (justincc)2011-11-11 23:33:55 +0000
committerJustin Clark-Casey (justincc)2011-11-11 23:33:55 +0000
commit84ad23234b369cc56db3004a1b6a0346c574724f (patch)
treeda2f16ecd07aecfb65aafeb232e3060d93555a2f /OpenSim
parentadd sit and stand on ground test (diff)
downloadopensim-SC-84ad23234b369cc56db3004a1b6a0346c574724f.zip
opensim-SC-84ad23234b369cc56db3004a1b6a0346c574724f.tar.gz
opensim-SC-84ad23234b369cc56db3004a1b6a0346c574724f.tar.bz2
opensim-SC-84ad23234b369cc56db3004a1b6a0346c574724f.tar.xz
add SP.PhysicsActor checks to other sit/stand tests
Diffstat (limited to '')
-rw-r--r--OpenSim/Region/Framework/Scenes/Tests/ScenePresenceSitTests.cs4
1 files changed, 4 insertions, 0 deletions
diff --git a/OpenSim/Region/Framework/Scenes/Tests/ScenePresenceSitTests.cs b/OpenSim/Region/Framework/Scenes/Tests/ScenePresenceSitTests.cs
index e3ffb53..fa308b4 100644
--- a/OpenSim/Region/Framework/Scenes/Tests/ScenePresenceSitTests.cs
+++ b/OpenSim/Region/Framework/Scenes/Tests/ScenePresenceSitTests.cs
@@ -110,6 +110,7 @@ namespace OpenSim.Region.Framework.Scenes.Tests
110 110
111 Assert.That(part.SitTargetAvatar, Is.EqualTo(UUID.Zero)); 111 Assert.That(part.SitTargetAvatar, Is.EqualTo(UUID.Zero));
112 Assert.That(sp.ParentID, Is.EqualTo(part.LocalId)); 112 Assert.That(sp.ParentID, Is.EqualTo(part.LocalId));
113 Assert.That(sp.PhysicsActor, Is.Null);
113 114
114 // FIXME: This is different for live avatars - z position is adjusted. This is half the height of the 115 // FIXME: This is different for live avatars - z position is adjusted. This is half the height of the
115 // default avatar. 116 // default avatar.
@@ -123,6 +124,7 @@ namespace OpenSim.Region.Framework.Scenes.Tests
123 124
124 Assert.That(part.SitTargetAvatar, Is.EqualTo(UUID.Zero)); 125 Assert.That(part.SitTargetAvatar, Is.EqualTo(UUID.Zero));
125 Assert.That(sp.ParentID, Is.EqualTo(0)); 126 Assert.That(sp.ParentID, Is.EqualTo(0));
127 Assert.That(sp.PhysicsActor, Is.Not.Null);
126 } 128 }
127 129
128 [Test] 130 [Test]
@@ -147,11 +149,13 @@ namespace OpenSim.Region.Framework.Scenes.Tests
147 Assert.That( 149 Assert.That(
148 sp.AbsolutePosition, 150 sp.AbsolutePosition,
149 Is.EqualTo(part.AbsolutePosition + part.SitTargetPosition + ScenePresence.SIT_TARGET_ADJUSTMENT)); 151 Is.EqualTo(part.AbsolutePosition + part.SitTargetPosition + ScenePresence.SIT_TARGET_ADJUSTMENT));
152 Assert.That(sp.PhysicsActor, Is.Null);
150 153
151 sp.StandUp(); 154 sp.StandUp();
152 155
153 Assert.That(part.SitTargetAvatar, Is.EqualTo(UUID.Zero)); 156 Assert.That(part.SitTargetAvatar, Is.EqualTo(UUID.Zero));
154 Assert.That(sp.ParentID, Is.EqualTo(0)); 157 Assert.That(sp.ParentID, Is.EqualTo(0));
158 Assert.That(sp.PhysicsActor, Is.Not.Null);
155 } 159 }
156 160
157 [Test] 161 [Test]