aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
-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;