diff options
author | UbitUmarov | 2014-07-20 09:21:00 +0100 |
---|---|---|
committer | UbitUmarov | 2014-07-20 09:21:00 +0100 |
commit | 79aea3e588c7458cee9ec1ee7a66dac389475e62 (patch) | |
tree | 7cc3791978087c36ec59f0ea73ceb63b07a510a5 /OpenSim/Region/Framework | |
parent | fix physics sit for physical child prims (diff) | |
download | opensim-SC-79aea3e588c7458cee9ec1ee7a66dac389475e62.zip opensim-SC-79aea3e588c7458cee9ec1ee7a66dac389475e62.tar.gz opensim-SC-79aea3e588c7458cee9ec1ee7a66dac389475e62.tar.bz2 opensim-SC-79aea3e588c7458cee9ec1ee7a66dac389475e62.tar.xz |
physicsSit SendSitResponse also relative to parent prim
Diffstat (limited to 'OpenSim/Region/Framework')
-rw-r--r-- | OpenSim/Region/Framework/Scenes/ScenePresence.cs | 16 |
1 files changed, 11 insertions, 5 deletions
diff --git a/OpenSim/Region/Framework/Scenes/ScenePresence.cs b/OpenSim/Region/Framework/Scenes/ScenePresence.cs index f57d4fe..f54ba9c 100644 --- a/OpenSim/Region/Framework/Scenes/ScenePresence.cs +++ b/OpenSim/Region/Framework/Scenes/ScenePresence.cs | |||
@@ -2824,14 +2824,20 @@ namespace OpenSim.Region.Framework.Scenes | |||
2824 | Vector3 cameraEyeOffset = part.GetCameraEyeOffset(); | 2824 | Vector3 cameraEyeOffset = part.GetCameraEyeOffset(); |
2825 | bool forceMouselook = part.GetForceMouselook(); | 2825 | bool forceMouselook = part.GetForceMouselook(); |
2826 | 2826 | ||
2827 | ControllingClient.SendSitResponse( | ||
2828 | part.UUID, offset, Orientation, false, cameraAtOffset, cameraEyeOffset, forceMouselook); | ||
2829 | |||
2830 | // not using autopilot | ||
2831 | |||
2832 | Rotation = Orientation; | 2827 | Rotation = Orientation; |
2833 | m_pos = offset; | 2828 | m_pos = offset; |
2834 | 2829 | ||
2830 | if (!part.IsRoot) | ||
2831 | { | ||
2832 | Orientation = part.RotationOffset * Orientation; | ||
2833 | offset = offset * part.RotationOffset; | ||
2834 | offset += part.OffsetPosition; | ||
2835 | } | ||
2836 | |||
2837 | ControllingClient.SendSitResponse( | ||
2838 | part.ParentGroup.UUID, offset, Orientation, false, cameraAtOffset, cameraEyeOffset, forceMouselook); | ||
2839 | |||
2840 | |||
2835 | m_requestedSitTargetID = 0; | 2841 | m_requestedSitTargetID = 0; |
2836 | part.ParentGroup.AddAvatar(UUID); | 2842 | part.ParentGroup.AddAvatar(UUID); |
2837 | 2843 | ||