Correct StandUp position and rotation

avinationmerge
Melanie 2012-07-30 03:05:57 +02:00
parent 88d68e68c1
commit bd262fe3ed
1 changed files with 3 additions and 1 deletions

View File

@ -1952,7 +1952,9 @@ namespace OpenSim.Region.Framework.Scenes
// m_pos += ParentPosition + new Vector3(0.0f, 0.0f, 2.0f * m_sitAvatarHeight);
// ParentPosition = Vector3.Zero;
m_pos += part.GetWorldPosition() + new Vector3(0.0f, 0.0f, 2.0f * m_sitAvatarHeight);
m_pos = part.AbsolutePosition + (m_pos * part.GetWorldRotation()) + new Vector3(0.0f, 0.0f, 2.0f * m_sitAvatarHeight);
if (part.SitTargetAvatar == UUID)
m_bodyRot = part.GetWorldRotation() * part.SitTargetOrientation;
ParentID = 0;
ParentPart = null;