Fix stand position for differing seat and root rotation.

Signed-off-by: Michael Cerquoni <nebadon2025@gmail.com>
inv-download
Magnuz Binder 2015-04-12 18:18:16 +02:00 committed by Michael Cerquoni
parent 01a6ce2baa
commit beba2ce781
1 changed files with 1 additions and 1 deletions

View File

@ -2659,7 +2659,7 @@ namespace OpenSim.Region.Framework.Scenes
// Vector3 standPositionAdjustment
// = part.SitTargetPosition + new Vector3(0.5f, 0f, m_sitAvatarHeight / 2f);
Vector3 adjustmentForSitPosition = (OffsetPosition - SIT_TARGET_ADJUSTMENT) * part.GetWorldRotation();
Vector3 adjustmentForSitPosition = OffsetPosition * part.ParentGroup.GroupRotation - SIT_TARGET_ADJUSTMENT * part.GetWorldRotation();
// XXX: This is based on the physics capsule sizes. Need to find a better way to read this rather than
// hardcoding here.