diff options
author | Robert Adams | 2013-09-20 09:23:12 -0700 |
---|---|---|
committer | Justin Clark-Casey (justincc) | 2013-09-26 20:09:16 +0100 |
commit | 2c856f2a60335dad8f695e0a110412f5df484d3b (patch) | |
tree | 97e6310131e3da80cdac2e972ea649d723a798d3 /OpenSim/Region/Physics/BulletSPlugin/BSActorAvatarMove.cs | |
parent | BulletSim: zero velocity when avatar not moving. (diff) | |
download | opensim-SC_OLD-2c856f2a60335dad8f695e0a110412f5df484d3b.zip opensim-SC_OLD-2c856f2a60335dad8f695e0a110412f5df484d3b.tar.gz opensim-SC_OLD-2c856f2a60335dad8f695e0a110412f5df484d3b.tar.bz2 opensim-SC_OLD-2c856f2a60335dad8f695e0a110412f5df484d3b.tar.xz |
BulletSim: reduce avatar walking stopped threshold.
Add parameter for setting the walking stopped threshold.
This fixes the slight jump when an avatar stops walking.
Diffstat (limited to 'OpenSim/Region/Physics/BulletSPlugin/BSActorAvatarMove.cs')
-rwxr-xr-x | OpenSim/Region/Physics/BulletSPlugin/BSActorAvatarMove.cs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/OpenSim/Region/Physics/BulletSPlugin/BSActorAvatarMove.cs b/OpenSim/Region/Physics/BulletSPlugin/BSActorAvatarMove.cs index 8ca55e5..1bcf879 100755 --- a/OpenSim/Region/Physics/BulletSPlugin/BSActorAvatarMove.cs +++ b/OpenSim/Region/Physics/BulletSPlugin/BSActorAvatarMove.cs | |||
@@ -128,6 +128,7 @@ public class BSActorAvatarMove : BSActor | |||
128 | BSMotor.Infinite, // decay time scale | 128 | BSMotor.Infinite, // decay time scale |
129 | 1f // efficiency | 129 | 1f // efficiency |
130 | ); | 130 | ); |
131 | m_velocityMotor.ErrorZeroThreshold = BSParam.AvatarStopZeroThreshold; | ||
131 | // _velocityMotor.PhysicsScene = PhysicsScene; // DEBUG DEBUG so motor will output detail log messages. | 132 | // _velocityMotor.PhysicsScene = PhysicsScene; // DEBUG DEBUG so motor will output detail log messages. |
132 | SetVelocityAndTarget(m_controllingPrim.RawVelocity, m_controllingPrim.TargetVelocity, true /* inTaintTime */); | 133 | SetVelocityAndTarget(m_controllingPrim.RawVelocity, m_controllingPrim.TargetVelocity, true /* inTaintTime */); |
133 | 134 | ||