diff options
author | Teravus Ovares | 2007-12-04 05:31:47 +0000 |
---|---|---|
committer | Teravus Ovares | 2007-12-04 05:31:47 +0000 |
commit | 90b66f8509e88c5394bc9441ca1dedbe6aeb0cdf (patch) | |
tree | 78e3a22c08553feaa60416f8e03e08b4bf654ed6 /OpenSim/Region | |
parent | set svn:eol-style (diff) | |
download | opensim-SC-90b66f8509e88c5394bc9441ca1dedbe6aeb0cdf.zip opensim-SC-90b66f8509e88c5394bc9441ca1dedbe6aeb0cdf.tar.gz opensim-SC-90b66f8509e88c5394bc9441ca1dedbe6aeb0cdf.tar.bz2 opensim-SC-90b66f8509e88c5394bc9441ca1dedbe6aeb0cdf.tar.xz |
* Flying with ODE and got that sinking feeling? This should help
Diffstat (limited to 'OpenSim/Region')
-rw-r--r-- | OpenSim/Region/Physics/OdePlugin/ODECharacter.cs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/OpenSim/Region/Physics/OdePlugin/ODECharacter.cs b/OpenSim/Region/Physics/OdePlugin/ODECharacter.cs index 888f555..1e15f5e 100644 --- a/OpenSim/Region/Physics/OdePlugin/ODECharacter.cs +++ b/OpenSim/Region/Physics/OdePlugin/ODECharacter.cs | |||
@@ -345,7 +345,7 @@ namespace OpenSim.Region.Physics.OdePlugin | |||
345 | vec.Y = (_target_velocity.Y - vel.Y) * PID_D + (_zeroPosition.Y - pos.Y) * PID_P; | 345 | vec.Y = (_target_velocity.Y - vel.Y) * PID_D + (_zeroPosition.Y - pos.Y) * PID_P; |
346 | if (flying) | 346 | if (flying) |
347 | { | 347 | { |
348 | vec.Z = (_target_velocity.Z - vel.Z) * PID_D + (_zeroPosition.Z - pos.Z) * PID_P; | 348 | vec.Z = (_target_velocity.Z - vel.Z) * (PID_D + 5100) + (_zeroPosition.Z - pos.Z) * PID_P; |
349 | } | 349 | } |
350 | } | 350 | } |
351 | else | 351 | else |
@@ -388,7 +388,7 @@ namespace OpenSim.Region.Physics.OdePlugin | |||
388 | 388 | ||
389 | if (flying) | 389 | if (flying) |
390 | { | 390 | { |
391 | vec.Z = (_target_velocity.Z - vel.Z) * PID_D; | 391 | vec.Z = (_target_velocity.Z - vel.Z) * (PID_D + 5100); |
392 | } | 392 | } |
393 | } | 393 | } |
394 | if (flying) | 394 | if (flying) |