physicsSit SendSitResponse also relative to parent prim

avinationmerge
UbitUmarov 2014-07-20 09:21:00 +01:00
parent 931434de87
commit 79aea3e588
1 changed files with 11 additions and 5 deletions

View File

@ -2824,14 +2824,20 @@ namespace OpenSim.Region.Framework.Scenes
Vector3 cameraEyeOffset = part.GetCameraEyeOffset(); Vector3 cameraEyeOffset = part.GetCameraEyeOffset();
bool forceMouselook = part.GetForceMouselook(); bool forceMouselook = part.GetForceMouselook();
ControllingClient.SendSitResponse(
part.UUID, offset, Orientation, false, cameraAtOffset, cameraEyeOffset, forceMouselook);
// not using autopilot
Rotation = Orientation; Rotation = Orientation;
m_pos = offset; m_pos = offset;
if (!part.IsRoot)
{
Orientation = part.RotationOffset * Orientation;
offset = offset * part.RotationOffset;
offset += part.OffsetPosition;
}
ControllingClient.SendSitResponse(
part.ParentGroup.UUID, offset, Orientation, false, cameraAtOffset, cameraEyeOffset, forceMouselook);
m_requestedSitTargetID = 0; m_requestedSitTargetID = 0;
part.ParentGroup.AddAvatar(UUID); part.ParentGroup.AddAvatar(UUID);