diff options
author | Magnuz Binder | 2015-04-12 18:18:16 +0200 |
---|---|---|
committer | Michael Cerquoni | 2015-04-12 12:53:47 -0400 |
commit | beba2ce781e2ccd1f977d6f97099d262c24b7b48 (patch) | |
tree | c2214311ddd6fc23b9ce21ca5974f3b079054f7c /OpenSim/Region/Framework/Scenes/ScenePresence.cs | |
parent | Add the missing commas to parcel parameter setting in osslEnable.ini (diff) | |
download | opensim-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>
Diffstat (limited to 'OpenSim/Region/Framework/Scenes/ScenePresence.cs')
-rw-r--r-- | OpenSim/Region/Framework/Scenes/ScenePresence.cs | 2 |
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. |