aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorMagnuz Binder2015-04-12 18:18:16 +0200
committerMichael Cerquoni2015-04-12 12:53:47 -0400
commitbeba2ce781e2ccd1f977d6f97099d262c24b7b48 (patch)
treec2214311ddd6fc23b9ce21ca5974f3b079054f7c
parentAdd the missing commas to parcel parameter setting in osslEnable.ini (diff)
downloadopensim-SC-beba2ce781e2ccd1f977d6f97099d262c24b7b48.zip
opensim-SC-beba2ce781e2ccd1f977d6f97099d262c24b7b48.tar.gz
opensim-SC-beba2ce781e2ccd1f977d6f97099d262c24b7b48.tar.bz2
opensim-SC-beba2ce781e2ccd1f977d6f97099d262c24b7b48.tar.xz
Fix stand position for differing seat and root rotation.
Signed-off-by: Michael Cerquoni <nebadon2025@gmail.com>
-rw-r--r--OpenSim/Region/Framework/Scenes/ScenePresence.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/OpenSim/Region/Framework/Scenes/ScenePresence.cs b/OpenSim/Region/Framework/Scenes/ScenePresence.cs
index d573b1a..0c320ff 100644
--- a/OpenSim/Region/Framework/Scenes/ScenePresence.cs
+++ b/OpenSim/Region/Framework/Scenes/ScenePresence.cs
@@ -2659,7 +2659,7 @@ namespace OpenSim.Region.Framework.Scenes
2659 2659
2660// Vector3 standPositionAdjustment 2660// Vector3 standPositionAdjustment
2661// = part.SitTargetPosition + new Vector3(0.5f, 0f, m_sitAvatarHeight / 2f); 2661// = part.SitTargetPosition + new Vector3(0.5f, 0f, m_sitAvatarHeight / 2f);
2662 Vector3 adjustmentForSitPosition = (OffsetPosition - SIT_TARGET_ADJUSTMENT) * part.GetWorldRotation(); 2662 Vector3 adjustmentForSitPosition = OffsetPosition * part.ParentGroup.GroupRotation - SIT_TARGET_ADJUSTMENT * part.GetWorldRotation();
2663 2663
2664 // XXX: This is based on the physics capsule sizes. Need to find a better way to read this rather than 2664 // XXX: This is based on the physics capsule sizes. Need to find a better way to read this rather than
2665 // hardcoding here. 2665 // hardcoding here.