Fixing AbsolutePosition to correct llSensor in vehicles

avinationmerge
Kitto Flora 2010-12-26 22:52:03 +00:00
parent f2dd324bc8
commit 61b7ec5fb5
1 changed files with 4 additions and 6 deletions

View File

@ -1108,12 +1108,10 @@ namespace OpenSim.Region.Framework.Scenes
public Vector3 AbsolutePosition public Vector3 AbsolutePosition
{ {
get { get
if (IsAttachment) {
return GroupPosition + (m_offsetPosition * ParentGroup.RootPart.RotationOffset); return GroupPosition + (m_offsetPosition * ParentGroup.RootPart.RotationOffset);
}
// return m_offsetPosition + m_groupPosition; }
return m_groupPosition + (m_offsetPosition * ParentGroup.RootPart.RotationOffset) ; } //KF: Rotation was ignored!
} }
public SceneObjectGroup ParentGroup public SceneObjectGroup ParentGroup