aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Environment/Scenes
diff options
context:
space:
mode:
authorSean Dague2008-01-08 21:56:52 +0000
committerSean Dague2008-01-08 21:56:52 +0000
commitebba112379ad67b066ad903a42f496b8fdb3aba4 (patch)
tree34c7c4d83f37c9c3be67d11e86f3c6f424434213 /OpenSim/Region/Environment/Scenes
parent* Removed unneeded and uneeded debug message (diff)
downloadopensim-SC-ebba112379ad67b066ad903a42f496b8fdb3aba4.zip
opensim-SC-ebba112379ad67b066ad903a42f496b8fdb3aba4.tar.gz
opensim-SC-ebba112379ad67b066ad903a42f496b8fdb3aba4.tar.bz2
opensim-SC-ebba112379ad67b066ad903a42f496b8fdb3aba4.tar.xz
make Stopped a property of the SceneObjectPart instead of in the
database code, so this is a shared concept.
Diffstat (limited to 'OpenSim/Region/Environment/Scenes')
-rw-r--r--OpenSim/Region/Environment/Scenes/SceneObjectPart.cs13
1 files changed, 13 insertions, 0 deletions
diff --git a/OpenSim/Region/Environment/Scenes/SceneObjectPart.cs b/OpenSim/Region/Environment/Scenes/SceneObjectPart.cs
index 9a7f28e..5a02ad4 100644
--- a/OpenSim/Region/Environment/Scenes/SceneObjectPart.cs
+++ b/OpenSim/Region/Environment/Scenes/SceneObjectPart.cs
@@ -402,6 +402,19 @@ namespace OpenSim.Region.Environment.Scenes
402 get { return m_shape.Scale; } 402 get { return m_shape.Scale; }
403 } 403 }
404 404
405 public bool Stopped
406 {
407 get {
408 double threshold = 0.02;
409 return (Math.Abs(Velocity.X) < threshold &&
410 Math.Abs(Velocity.Y) < threshold &&
411 Math.Abs(Velocity.Z) < threshold &&
412 Math.Abs(AngularVelocity.X) < threshold &&
413 Math.Abs(AngularVelocity.Y) < threshold &&
414 Math.Abs(AngularVelocity.Z) < threshold);
415 }
416 }
417
405 #endregion 418 #endregion
406 419
407 public LLUUID ObjectOwner 420 public LLUUID ObjectOwner