aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region
diff options
context:
space:
mode:
authorRobert Adams2013-09-20 09:36:19 -0700
committerJustin Clark-Casey (justincc)2013-09-26 20:09:12 +0100
commit3ba1d5259afc01fa2c412ab6c4da3640e432a53b (patch)
treece304203bdef1e91ee4541452ee132e85b68d261 /OpenSim/Region
parentMake new regions PG by default instead of Mature. (diff)
downloadopensim-SC_OLD-3ba1d5259afc01fa2c412ab6c4da3640e432a53b.zip
opensim-SC_OLD-3ba1d5259afc01fa2c412ab6c4da3640e432a53b.tar.gz
opensim-SC_OLD-3ba1d5259afc01fa2c412ab6c4da3640e432a53b.tar.bz2
opensim-SC_OLD-3ba1d5259afc01fa2c412ab6c4da3640e432a53b.tar.xz
BulletSim: zero velocity when avatar not moving.
This fixes a movement jitter that happens when an avatar is standing on a tilted surface.
Diffstat (limited to 'OpenSim/Region')
-rwxr-xr-xOpenSim/Region/Physics/BulletSPlugin/BSActorAvatarMove.cs1
1 files changed, 1 insertions, 0 deletions
diff --git a/OpenSim/Region/Physics/BulletSPlugin/BSActorAvatarMove.cs b/OpenSim/Region/Physics/BulletSPlugin/BSActorAvatarMove.cs
index 04a4a32..8ca55e5 100755
--- a/OpenSim/Region/Physics/BulletSPlugin/BSActorAvatarMove.cs
+++ b/OpenSim/Region/Physics/BulletSPlugin/BSActorAvatarMove.cs
@@ -278,6 +278,7 @@ public class BSActorAvatarMove : BSActor
278 if (m_controllingPrim.IsStationary) 278 if (m_controllingPrim.IsStationary)
279 { 279 {
280 entprop.Position = m_controllingPrim.RawPosition; 280 entprop.Position = m_controllingPrim.RawPosition;
281 entprop.Velocity = OMV.Vector3.Zero;
281 m_physicsScene.PE.SetTranslation(m_controllingPrim.PhysBody, entprop.Position, entprop.Rotation); 282 m_physicsScene.PE.SetTranslation(m_controllingPrim.PhysBody, entprop.Position, entprop.Rotation);
282 } 283 }
283 284