mirror of
https://github.com/opensim/opensim.git
synced 2026-08-04 16:22:50 +08:00
Sit and Spin reduction. If sitting, slam avatar angular velocity to zero.
This commit is contained in:
@@ -2342,7 +2342,7 @@ namespace OpenSim.Region.Framework.Scenes
|
||||
|
||||
ParentPart = m_scene.GetSceneObjectPart(m_requestedSitTargetID);
|
||||
ParentID = m_requestedSitTargetID;
|
||||
|
||||
m_AngularVelocity = Vector3.Zero;
|
||||
Velocity = Vector3.Zero;
|
||||
RemoveFromPhysicalScene();
|
||||
|
||||
@@ -2358,7 +2358,8 @@ namespace OpenSim.Region.Framework.Scenes
|
||||
|
||||
public void HandleAgentSitOnGround()
|
||||
{
|
||||
// m_updateCount = 0; // Kill animation update burst so that the SIT_G.. will stick.
|
||||
// m_updateCount = 0; // Kill animation update burst so that the SIT_G.. will stick..
|
||||
m_AngularVelocity = Vector3.Zero;
|
||||
Animator.TrySetMovementAnimation("SIT_GROUND_CONSTRAINED");
|
||||
SitGround = true;
|
||||
RemoveFromPhysicalScene();
|
||||
|
||||
Reference in New Issue
Block a user