diff options
author | Robert Adams | 2012-12-21 23:05:05 -0800 |
---|---|---|
committer | Robert Adams | 2012-12-21 23:05:05 -0800 |
commit | a54392d7cc0c81d70d241393da8f50c409e9b895 (patch) | |
tree | 25c006921c608df449048e54f80ede8cd9d8b7a3 /OpenSim/Region/Physics | |
parent | BulletSim: Fix llApplyImpulse so it works after the first impulse. The proble... (diff) | |
download | opensim-SC_OLD-a54392d7cc0c81d70d241393da8f50c409e9b895.zip opensim-SC_OLD-a54392d7cc0c81d70d241393da8f50c409e9b895.tar.gz opensim-SC_OLD-a54392d7cc0c81d70d241393da8f50c409e9b895.tar.bz2 opensim-SC_OLD-a54392d7cc0c81d70d241393da8f50c409e9b895.tar.xz |
BulletSim: remove the movement decay while flying. Made flying slow down over time.
Diffstat (limited to 'OpenSim/Region/Physics')
-rw-r--r-- | OpenSim/Region/Physics/BulletSPlugin/BSCharacter.cs | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/OpenSim/Region/Physics/BulletSPlugin/BSCharacter.cs b/OpenSim/Region/Physics/BulletSPlugin/BSCharacter.cs index b392d75..01cd279 100644 --- a/OpenSim/Region/Physics/BulletSPlugin/BSCharacter.cs +++ b/OpenSim/Region/Physics/BulletSPlugin/BSCharacter.cs | |||
@@ -563,12 +563,6 @@ public sealed class BSCharacter : BSPhysObject | |||
563 | set { | 563 | set { |
564 | _flying = value; | 564 | _flying = value; |
565 | 565 | ||
566 | // Velocity movement is different when flying: flying velocity degrades over time. | ||
567 | if (_flying) | ||
568 | _velocityMotor.TargetValueDecayTimeScale = 1f; | ||
569 | else | ||
570 | _velocityMotor.TargetValueDecayTimeScale = BSMotor.Infinite; | ||
571 | |||
572 | // simulate flying by changing the effect of gravity | 566 | // simulate flying by changing the effect of gravity |
573 | Buoyancy = ComputeBuoyancyFromFlying(_flying); | 567 | Buoyancy = ComputeBuoyancyFromFlying(_flying); |
574 | } | 568 | } |