From 1c4bcf3fedbdb3c8143f364c43c939da810e896e Mon Sep 17 00:00:00 2001 From: Melanie Date: Tue, 3 Apr 2012 23:13:48 +0200 Subject: Fix merge artefacts --- .../Region/Framework/Scenes/SceneObjectGroup.cs | 27 +--------------------- OpenSim/Region/Framework/Scenes/SceneObjectPart.cs | 2 +- 2 files changed, 2 insertions(+), 27 deletions(-) diff --git a/OpenSim/Region/Framework/Scenes/SceneObjectGroup.cs b/OpenSim/Region/Framework/Scenes/SceneObjectGroup.cs index 5b47fc0..ca6b5cb 100644 --- a/OpenSim/Region/Framework/Scenes/SceneObjectGroup.cs +++ b/OpenSim/Region/Framework/Scenes/SceneObjectGroup.cs @@ -2181,20 +2181,6 @@ namespace OpenSim.Region.Framework.Scenes } } - public void applyAngularImpulse(Vector3 impulse) - { - PhysicsActor pa = RootPart.PhysActor; - - if (pa != null) - { - if (!IsAttachment) - { - pa.AddAngularForce(impulse, true); - m_scene.PhysicsScene.AddPhysicsActorTaint(pa); - } - } - } - public void setAngularImpulse(Vector3 impulse) { PhysicsActor pa = RootPart.PhysActor; @@ -2211,18 +2197,7 @@ namespace OpenSim.Region.Framework.Scenes public Vector3 GetTorque() { - PhysicsActor pa = RootPart.PhysActor; - - if (pa != null) - { - if (!IsAttachment) - { - Vector3 torque = pa.Torque; - return torque; - } - } - - return Vector3.Zero; + return Torque; } // This is used by both Double-Click Auto-Pilot and llMoveToTarget() in an attached object diff --git a/OpenSim/Region/Framework/Scenes/SceneObjectPart.cs b/OpenSim/Region/Framework/Scenes/SceneObjectPart.cs index 83b0b18..9ba3e92 100644 --- a/OpenSim/Region/Framework/Scenes/SceneObjectPart.cs +++ b/OpenSim/Region/Framework/Scenes/SceneObjectPart.cs @@ -1803,7 +1803,7 @@ namespace OpenSim.Region.Framework.Scenes impulse = newimpulse; } - ParentGroup.applyAngularImpulse(impulse); + ParentGroup.setAngularImpulse(impulse); } /// -- cgit v1.1