Fixing AbsolutePosition to correct llSensor in vehicles
parent
f2dd324bc8
commit
61b7ec5fb5
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue