Correct sit position calculations

avinationmerge
Melanie 2012-02-23 22:26:17 +01:00
parent f3ea2bde61
commit 1c0adfa6e0
1 changed files with 2 additions and 2 deletions

View File

@ -4845,7 +4845,7 @@ namespace OpenSim.Region.ClientStack.LindenUDP
if (part != null && part != part.ParentGroup.RootPart)
{
position = part.OffsetPosition + presence.OffsetPosition * part.RotationOffset;
rotation = presence.Rotation * part.RotationOffset;
rotation = part.RotationOffset * presence.Rotation;
}
}
@ -4974,7 +4974,7 @@ namespace OpenSim.Region.ClientStack.LindenUDP
if (part != null && part != part.ParentGroup.RootPart)
{
offsetPosition = part.OffsetPosition + data.OffsetPosition * part.RotationOffset;
rotation = data.Rotation * part.RotationOffset;
rotation = part.RotationOffset * data.Rotation;
parentID = part.ParentGroup.RootPart.LocalId;
}
}