mirror of
https://github.com/opensim/opensim.git
synced 2026-08-08 10:15:33 +08:00
physicsSit SendSitResponse also relative to parent prim
This commit is contained in:
@@ -2824,14 +2824,20 @@ namespace OpenSim.Region.Framework.Scenes
|
||||
Vector3 cameraEyeOffset = part.GetCameraEyeOffset();
|
||||
bool forceMouselook = part.GetForceMouselook();
|
||||
|
||||
ControllingClient.SendSitResponse(
|
||||
part.UUID, offset, Orientation, false, cameraAtOffset, cameraEyeOffset, forceMouselook);
|
||||
|
||||
// not using autopilot
|
||||
|
||||
Rotation = Orientation;
|
||||
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;
|
||||
part.ParentGroup.AddAvatar(UUID);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user