BulletSim: zero velocity when avatar not moving.
This fixes a movement jitter that happens when an avatar is standing on a tilted surface.varregion
parent
c06a9ffe5c
commit
07d7a5fd76
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue