diff options
author | Kitto Flora | 2010-04-29 19:41:08 -0400 |
---|---|---|
committer | Kitto Flora | 2010-04-29 19:41:08 -0400 |
commit | f3c21524be94dac139e15b0cd80b1e79570f7916 (patch) | |
tree | 008bca719d4daec94b03f11ccb4ac5324af05150 /OpenSim/Region | |
parent | Fix vertical attractor (diff) | |
download | opensim-SC-f3c21524be94dac139e15b0cd80b1e79570f7916.zip opensim-SC-f3c21524be94dac139e15b0cd80b1e79570f7916.tar.gz opensim-SC-f3c21524be94dac139e15b0cd80b1e79570f7916.tar.bz2 opensim-SC-f3c21524be94dac139e15b0cd80b1e79570f7916.tar.xz |
Fix Av jump motion S/W
Diffstat (limited to '')
-rw-r--r-- | OpenSim/Region/Physics/ChOdePlugin/ODECharacter.cs | 4 |
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 | } |