aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/PhysicsModules/ubOde/ODEPrim.cs
diff options
context:
space:
mode:
authorUbitUmarov2015-11-08 00:22:06 +0000
committerUbitUmarov2015-11-08 00:24:54 +0000
commiteccc6f108131d1283a0ba84becd9606305c1057a (patch)
tree55735890550f3534b9fd7f2f820ceee3def28381 /OpenSim/Region/PhysicsModules/ubOde/ODEPrim.cs
parent send the estimation of time dilation at packet build time, not the one at un... (diff)
downloadopensim-SC-eccc6f108131d1283a0ba84becd9606305c1057a.zip
opensim-SC-eccc6f108131d1283a0ba84becd9606305c1057a.tar.gz
opensim-SC-eccc6f108131d1283a0ba84becd9606305c1057a.tar.bz2
opensim-SC-eccc6f108131d1283a0ba84becd9606305c1057a.tar.xz
fix wrong condition to set low angular velocity as Zero.
Diffstat (limited to 'OpenSim/Region/PhysicsModules/ubOde/ODEPrim.cs')
-rw-r--r--OpenSim/Region/PhysicsModules/ubOde/ODEPrim.cs8
1 files changed, 4 insertions, 4 deletions
diff --git a/OpenSim/Region/PhysicsModules/ubOde/ODEPrim.cs b/OpenSim/Region/PhysicsModules/ubOde/ODEPrim.cs
index 6e2f877..2752449 100644
--- a/OpenSim/Region/PhysicsModules/ubOde/ODEPrim.cs
+++ b/OpenSim/Region/PhysicsModules/ubOde/ODEPrim.cs
@@ -3657,16 +3657,16 @@ namespace OpenSim.Region.PhysicsModule.ubOde
3657 _acceleration = Vector3.Zero; 3657 _acceleration = Vector3.Zero;
3658 } 3658 }
3659 3659
3660 if ((Math.Abs(_orientation.X - ori.X) < 0.0001) && 3660 vel = d.BodyGetAngularVel(Body);
3661 (Math.Abs(_orientation.Y - ori.Y) < 0.0001) && 3661 if ((Math.Abs(vel.X) < 0.0001) &&
3662 (Math.Abs(_orientation.Z - ori.Z) < 0.0001) 3662 (Math.Abs(vel.Y) < 0.0001) &&
3663 (Math.Abs(vel.Z) < 0.0001)
3663 ) 3664 )
3664 { 3665 {
3665 m_rotationalVelocity = Vector3.Zero; 3666 m_rotationalVelocity = Vector3.Zero;
3666 } 3667 }
3667 else 3668 else
3668 { 3669 {
3669 vel = d.BodyGetAngularVel(Body);
3670 m_rotationalVelocity.X = vel.X; 3670 m_rotationalVelocity.X = vel.X;
3671 m_rotationalVelocity.Y = vel.Y; 3671 m_rotationalVelocity.Y = vel.Y;
3672 m_rotationalVelocity.Z = vel.Z; 3672 m_rotationalVelocity.Z = vel.Z;