mirror of
https://github.com/opensim/opensim.git
synced 2026-08-06 01:06:30 +08:00
BulletSim: zero velocity when avatar not moving.
This fixes a movement jitter that happens when an avatar is standing on a tilted surface.
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user