Merge branch 'avination' into careminster
commit
70996603e5
|
@ -212,9 +212,15 @@ namespace OpenSim.Region.Framework.Scenes
|
|||
}
|
||||
|
||||
// Use the camera position for local agents and avatar position for remote agents
|
||||
Vector3 presencePos = (presence.IsChildAgent) ?
|
||||
presence.AbsolutePosition :
|
||||
presence.CameraPosition;
|
||||
// Why would I want that? They could be camming but I still see them at the
|
||||
// avatar position, so why should I update them as if they were at their
|
||||
// camera positions? Makes no sense!
|
||||
// TODO: Fix this mess
|
||||
//Vector3 presencePos = (presence.IsChildAgent) ?
|
||||
// presence.AbsolutePosition :
|
||||
// presence.CameraPosition;
|
||||
|
||||
Vector3 presencePos = presence.AbsolutePosition;
|
||||
|
||||
// Compute the distance...
|
||||
double distance = Vector3.Distance(presencePos, entityPos);
|
||||
|
|
|
@ -1947,7 +1947,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