Correct StandUp position and rotation
parent
88d68e68c1
commit
bd262fe3ed
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue