From 9bf8c3e7b73da735a6e8aa865e5d19f16453981c Mon Sep 17 00:00:00 2001 From: Justin Clark-Casey (justincc) Date: Fri, 28 Oct 2011 23:38:57 +0100 Subject: Add missing doc to rotation/position methods in SOG --- OpenSim/Region/Framework/Scenes/SceneObjectGroup.cs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'OpenSim/Region/Framework/Scenes/SceneObjectGroup.cs') diff --git a/OpenSim/Region/Framework/Scenes/SceneObjectGroup.cs b/OpenSim/Region/Framework/Scenes/SceneObjectGroup.cs index 2d6d4ec..f6d3293 100644 --- a/OpenSim/Region/Framework/Scenes/SceneObjectGroup.cs +++ b/OpenSim/Region/Framework/Scenes/SceneObjectGroup.cs @@ -2808,7 +2808,7 @@ namespace OpenSim.Region.Framework.Scenes #region Rotation /// - /// + /// Update the rotation of the group. /// /// public void UpdateGroupRotationR(Quaternion rot) @@ -2836,7 +2836,7 @@ namespace OpenSim.Region.Framework.Scenes } /// - /// + /// Update the position and rotation of a group simultaneously. /// /// /// @@ -2870,7 +2870,7 @@ namespace OpenSim.Region.Framework.Scenes } /// - /// + /// Update the rotation of a single prim within the group. /// /// /// @@ -2899,7 +2899,7 @@ namespace OpenSim.Region.Framework.Scenes } /// - /// + /// Update the position and rotation simultaneously of a single prim within the group. /// /// /// @@ -2931,7 +2931,7 @@ namespace OpenSim.Region.Framework.Scenes } /// - /// + /// Update the entire rotation of the group. /// /// public void UpdateRootRotation(Quaternion rot) -- cgit v1.1 From c2da1c4580302a3f1a30b7ad2e70f590aff76167 Mon Sep 17 00:00:00 2001 From: Justin Clark-Casey (justincc) Date: Fri, 28 Oct 2011 23:43:31 +0100 Subject: set grp.RootPart.GroupPosition for code consistency (and readability) rather than calling SOP.OffsetForNewRegion --- OpenSim/Region/Framework/Scenes/SceneObjectGroup.cs | 5 ----- 1 file changed, 5 deletions(-) (limited to 'OpenSim/Region/Framework/Scenes/SceneObjectGroup.cs') diff --git a/OpenSim/Region/Framework/Scenes/SceneObjectGroup.cs b/OpenSim/Region/Framework/Scenes/SceneObjectGroup.cs index f6d3293..64810d2 100644 --- a/OpenSim/Region/Framework/Scenes/SceneObjectGroup.cs +++ b/OpenSim/Region/Framework/Scenes/SceneObjectGroup.cs @@ -2798,11 +2798,6 @@ namespace OpenSim.Region.Framework.Scenes ScheduleGroupForTerseUpdate(); } - public void OffsetForNewRegion(Vector3 offset) - { - m_rootPart.GroupPosition = offset; - } - #endregion #region Rotation -- cgit v1.1 From 61e97ee4c85d79098731eb7ddc074af388c61380 Mon Sep 17 00:00:00 2001 From: Justin Clark-Casey (justincc) Date: Sat, 29 Oct 2011 00:39:01 +0100 Subject: Remove completely unused SOG.Rotation parameter We always use SOP.Rotation instead --- OpenSim/Region/Framework/Scenes/SceneObjectGroup.cs | 8 -------- 1 file changed, 8 deletions(-) (limited to 'OpenSim/Region/Framework/Scenes/SceneObjectGroup.cs') diff --git a/OpenSim/Region/Framework/Scenes/SceneObjectGroup.cs b/OpenSim/Region/Framework/Scenes/SceneObjectGroup.cs index 64810d2..2ea9854 100644 --- a/OpenSim/Region/Framework/Scenes/SceneObjectGroup.cs +++ b/OpenSim/Region/Framework/Scenes/SceneObjectGroup.cs @@ -281,14 +281,6 @@ namespace OpenSim.Region.Framework.Scenes get { return m_parts.Count; } } - protected Quaternion m_rotation = Quaternion.Identity; - - public virtual Quaternion Rotation - { - get { return m_rotation; } - set { m_rotation = value; } - } - public Quaternion GroupRotation { get { return m_rootPart.RotationOffset; } -- cgit v1.1