physicsSit SendSitResponse also relative to parent prim
parent
931434de87
commit
79aea3e588
|
@ -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);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue