diff options
author | Robert Adams | 2016-01-18 10:50:28 -0800 |
---|---|---|
committer | Robert Adams | 2016-01-18 10:50:28 -0800 |
commit | ddd59fab5ff7a68b0cc208326e6a5602290a0efe (patch) | |
tree | 5f5d87f9a14cde279624adaf5f046e52435a56e2 | |
parent | BulletSim: fix problem of not zeroing motion when stationary (drift problem from (diff) | |
download | opensim-SC_OLD-ddd59fab5ff7a68b0cc208326e6a5602290a0efe.zip opensim-SC_OLD-ddd59fab5ff7a68b0cc208326e6a5602290a0efe.tar.gz opensim-SC_OLD-ddd59fab5ff7a68b0cc208326e6a5602290a0efe.tar.bz2 opensim-SC_OLD-ddd59fab5ff7a68b0cc208326e6a5602290a0efe.tar.xz |
BulletSim: add stationary suppression on AddForce application. This enables
small pushing of avatars (Mantis 7779).
-rw-r--r-- | OpenSim/Region/PhysicsModules/BulletS/BSCharacter.cs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/OpenSim/Region/PhysicsModules/BulletS/BSCharacter.cs b/OpenSim/Region/PhysicsModules/BulletS/BSCharacter.cs index 0eb5fba..4b75e32 100644 --- a/OpenSim/Region/PhysicsModules/BulletS/BSCharacter.cs +++ b/OpenSim/Region/PhysicsModules/BulletS/BSCharacter.cs | |||
@@ -683,6 +683,10 @@ public sealed class BSCharacter : BSPhysObject | |||
683 | PhysScene.PE.ApplyCentralForce(PhysBody, addForce); | 683 | PhysScene.PE.ApplyCentralForce(PhysBody, addForce); |
684 | PhysScene.PE.Activate(PhysBody, true); | 684 | PhysScene.PE.Activate(PhysBody, true); |
685 | } | 685 | } |
686 | if (m_moveActor != null) | ||
687 | { | ||
688 | m_moveActor.SuppressStationayCheckUntilLowVelocity(); | ||
689 | } | ||
686 | }); | 690 | }); |
687 | } | 691 | } |
688 | else | 692 | else |