BulletSim: zero velocity when avatar not moving.

This fixes a movement jitter that happens when an avatar is standing on a
tilted surface.
varregion
Robert Adams 2013-09-20 09:36:19 -07:00
parent c06a9ffe5c
commit 07d7a5fd76
1 changed files with 1 additions and 0 deletions

View File

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