diff options
Diffstat (limited to '')
-rw-r--r-- | OpenSim/Region/Environment/Scenes/SceneObjectPart.cs | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/OpenSim/Region/Environment/Scenes/SceneObjectPart.cs b/OpenSim/Region/Environment/Scenes/SceneObjectPart.cs index bcd31c2..973c30e 100644 --- a/OpenSim/Region/Environment/Scenes/SceneObjectPart.cs +++ b/OpenSim/Region/Environment/Scenes/SceneObjectPart.cs | |||
@@ -72,6 +72,8 @@ namespace OpenSim.Region.Environment.Scenes | |||
72 | private Quaternion m_sitTargetOrientation = new Quaternion(0, 0, 0, 1); | 72 | private Quaternion m_sitTargetOrientation = new Quaternion(0, 0, 0, 1); |
73 | private LLUUID m_SitTargetAvatar = LLUUID.Zero; | 73 | private LLUUID m_SitTargetAvatar = LLUUID.Zero; |
74 | 74 | ||
75 | |||
76 | |||
75 | 77 | ||
76 | // Main grid has default permissions as follows | 78 | // Main grid has default permissions as follows |
77 | // | 79 | // |
@@ -345,6 +347,15 @@ namespace OpenSim.Region.Environment.Scenes | |||
345 | 347 | ||
346 | private string m_text = ""; | 348 | private string m_text = ""; |
347 | 349 | ||
350 | public Vector3 SitTargetPosition | ||
351 | { | ||
352 | get { return m_sitTargetPosition; } | ||
353 | } | ||
354 | public Quaternion SitTargetOrientation | ||
355 | { | ||
356 | get { return m_sitTargetOrientation; } | ||
357 | } | ||
358 | |||
348 | public string Text | 359 | public string Text |
349 | { | 360 | { |
350 | get { return m_text; } | 361 | get { return m_text; } |
@@ -786,6 +797,22 @@ namespace OpenSim.Region.Environment.Scenes | |||
786 | m_sitTargetPosition = offset; | 797 | m_sitTargetPosition = offset; |
787 | m_sitTargetOrientation = orientation; | 798 | m_sitTargetOrientation = orientation; |
788 | } | 799 | } |
800 | public LLVector3 GetSitTargetPositionLL() | ||
801 | { | ||
802 | return new LLVector3(m_sitTargetPosition.x, m_sitTargetPosition.y, m_sitTargetPosition.z); | ||
803 | } | ||
804 | |||
805 | public LLQuaternion GetSitTargetOrientationLL() | ||
806 | { | ||
807 | return new LLQuaternion(m_sitTargetOrientation.w, m_sitTargetOrientation.x, m_sitTargetOrientation.y, m_sitTargetOrientation.z); | ||
808 | } | ||
809 | |||
810 | // Utility function so the databases don't have to reference axiom.math | ||
811 | public void SetSitTargetLL(LLVector3 offset, LLQuaternion orientation) | ||
812 | { | ||
813 | m_sitTargetPosition = new Vector3(offset.X, offset.Y, offset.Z); | ||
814 | m_sitTargetOrientation = new Quaternion(orientation.W, orientation.X, orientation.Y, orientation.Z); | ||
815 | } | ||
789 | 816 | ||
790 | public Vector3 GetSitTargetPosition() | 817 | public Vector3 GetSitTargetPosition() |
791 | { | 818 | { |