diff options
author | Robert Adams | 2013-09-20 09:36:19 -0700 |
---|---|---|
committer | Justin Clark-Casey (justincc) | 2013-09-26 20:09:12 +0100 |
commit | 3ba1d5259afc01fa2c412ab6c4da3640e432a53b (patch) | |
tree | ce304203bdef1e91ee4541452ee132e85b68d261 /OpenSim/Region/Physics/BulletSPlugin/BSActorAvatarMove.cs | |
parent | Make new regions PG by default instead of Mature. (diff) | |
download | opensim-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 '')
-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 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 | ||