diff options
Diffstat (limited to 'OpenSim/Region/Environment/Scenes')
-rw-r--r-- | OpenSim/Region/Environment/Scenes/SceneObjectPart.cs | 13 |
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 |