aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Framework/Scenes/SceneObjectGroup.cs
diff options
context:
space:
mode:
authorMelanie2009-10-02 00:47:01 +0100
committerMelanie2009-10-02 00:47:01 +0100
commit212e132e79f868fd3bb9bcf9ef2c13eb12f8c14e (patch)
tree5af4731fb69cb8546a9cfb857dabbebc5f0b6ee1 /OpenSim/Region/Framework/Scenes/SceneObjectGroup.cs
parentFix a merge conflict (diff)
downloadopensim-SC-212e132e79f868fd3bb9bcf9ef2c13eb12f8c14e.zip
opensim-SC-212e132e79f868fd3bb9bcf9ef2c13eb12f8c14e.tar.gz
opensim-SC-212e132e79f868fd3bb9bcf9ef2c13eb12f8c14e.tar.bz2
opensim-SC-212e132e79f868fd3bb9bcf9ef2c13eb12f8c14e.tar.xz
Revert "* Adding Scale to EntityBase * Fixing the incorrect initialization of EntityBase.Rotation * Removed SceneObjectGroup.GroupRotation and added overrides for Scale/Rotation/Velocity"
This reverts commit 39842eb4af3b5a8c52d56c0f7f05ad54f0651bb0.
Diffstat (limited to 'OpenSim/Region/Framework/Scenes/SceneObjectGroup.cs')
-rw-r--r--OpenSim/Region/Framework/Scenes/SceneObjectGroup.cs30
1 files changed, 7 insertions, 23 deletions
diff --git a/OpenSim/Region/Framework/Scenes/SceneObjectGroup.cs b/OpenSim/Region/Framework/Scenes/SceneObjectGroup.cs
index 6b4cc0d..9f44f92 100644
--- a/OpenSim/Region/Framework/Scenes/SceneObjectGroup.cs
+++ b/OpenSim/Region/Framework/Scenes/SceneObjectGroup.cs
@@ -204,22 +204,9 @@ namespace OpenSim.Region.Framework.Scenes
204 get { return m_parts.Count; } 204 get { return m_parts.Count; }
205 } 205 }
206 206
207 public override Quaternion Rotation 207 public Quaternion GroupRotation
208 { 208 {
209 get { return m_rootPart.RotationOffset; } 209 get { return m_rootPart.RotationOffset; }
210 set { m_rootPart.RotationOffset = value; }
211 }
212
213 public override Vector3 Scale
214 {
215 get { return m_rootPart.Scale; }
216 set { m_rootPart.Scale = value; }
217 }
218
219 public override Vector3 Velocity
220 {
221 get { return m_rootPart.Velocity; }
222 set { m_rootPart.Velocity = value; }
223 } 210 }
224 211
225 public UUID GroupID 212 public UUID GroupID
@@ -548,7 +535,7 @@ namespace OpenSim.Region.Framework.Scenes
548 // Temporary commented to stop compiler warning 535 // Temporary commented to stop compiler warning
549 //Vector3 partPosition = 536 //Vector3 partPosition =
550 // new Vector3(part.AbsolutePosition.X, part.AbsolutePosition.Y, part.AbsolutePosition.Z); 537 // new Vector3(part.AbsolutePosition.X, part.AbsolutePosition.Y, part.AbsolutePosition.Z);
551 Quaternion parentrotation = Rotation; 538 Quaternion parentrotation = GroupRotation;
552 539
553 // Telling the prim to raytrace. 540 // Telling the prim to raytrace.
554 //EntityIntersection inter = part.TestIntersection(hRay, parentrotation); 541 //EntityIntersection inter = part.TestIntersection(hRay, parentrotation);
@@ -1891,17 +1878,14 @@ namespace OpenSim.Region.Framework.Scenes
1891 1878
1892 checkAtTargets(); 1879 checkAtTargets();
1893 1880
1894 Quaternion rot = Rotation; 1881 if (UsePhysics && ((Math.Abs(lastPhysGroupRot.W - GroupRotation.W) > 0.1)
1895 1882 || (Math.Abs(lastPhysGroupRot.X - GroupRotation.X) > 0.1)
1896 if (UsePhysics && 1883 || (Math.Abs(lastPhysGroupRot.Y - GroupRotation.Y) > 0.1)
1897 ((Math.Abs(lastPhysGroupRot.W - rot.W) > 0.1f) 1884 || (Math.Abs(lastPhysGroupRot.Z - GroupRotation.Z) > 0.1)))
1898 || (Math.Abs(lastPhysGroupRot.X - rot.X) > 0.1f)
1899 || (Math.Abs(lastPhysGroupRot.Y - rot.Y) > 0.1f)
1900 || (Math.Abs(lastPhysGroupRot.Z - rot.Z) > 0.1f)))
1901 { 1885 {
1902 m_rootPart.UpdateFlag = 1; 1886 m_rootPart.UpdateFlag = 1;
1903 1887
1904 lastPhysGroupRot = rot; 1888 lastPhysGroupRot = GroupRotation;
1905 } 1889 }
1906 1890
1907 foreach (SceneObjectPart part in m_parts.Values) 1891 foreach (SceneObjectPart part in m_parts.Values)