aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim/Region')
-rw-r--r--OpenSim/Region/Physics/ChOdePlugin/ODECharacter.cs4
1 files changed, 2 insertions, 2 deletions
diff --git a/OpenSim/Region/Physics/ChOdePlugin/ODECharacter.cs b/OpenSim/Region/Physics/ChOdePlugin/ODECharacter.cs
index 8e87ad9..7a5093b 100644
--- a/OpenSim/Region/Physics/ChOdePlugin/ODECharacter.cs
+++ b/OpenSim/Region/Physics/ChOdePlugin/ODECharacter.cs
@@ -1025,11 +1025,11 @@ namespace OpenSim.Region.Physics.OdePlugin
1025 // m_iscolliding includes collisions with the ground. 1025 // m_iscolliding includes collisions with the ground.
1026 1026
1027 // d.Vector3 pos = d.BodyGetPosition(Body); 1027 // d.Vector3 pos = d.BodyGetPosition(Body);
1028 if (_target_velocity.X > 0) 1028 if (Math.Abs(_target_velocity.X) > 0)
1029 { 1029 {
1030 vec.X = ((_target_velocity.X - vel.X)/1.2f)*PID_D; 1030 vec.X = ((_target_velocity.X - vel.X)/1.2f)*PID_D;
1031 } 1031 }
1032 if (_target_velocity.Y > 0) 1032 if (Math.Abs(_target_velocity.Y) > 0)
1033 { 1033 {
1034 vec.Y = ((_target_velocity.Y - vel.Y)/1.2f)*PID_D; 1034 vec.Y = ((_target_velocity.Y - vel.Y)/1.2f)*PID_D;
1035 } 1035 }