BulletSim: zero velocity when avatar not moving.

This fixes a movement jitter that happens when an avatar is standing on a
tilted surface.
0.7.6-extended
Robert Adams 2013-09-20 09:36:19 -07:00 committed by Justin Clark-Casey (justincc)
parent 0bb8415a69
commit 3ba1d5259a
1 changed files with 1 additions and 0 deletions

View File

@ -278,6 +278,7 @@ public class BSActorAvatarMove : BSActor
if (m_controllingPrim.IsStationary)
{
entprop.Position = m_controllingPrim.RawPosition;
entprop.Velocity = OMV.Vector3.Zero;
m_physicsScene.PE.SetTranslation(m_controllingPrim.PhysBody, entprop.Position, entprop.Rotation);
}