aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Framework/Scenes/SceneObjectGroup.cs
diff options
context:
space:
mode:
authorMelanie2012-06-15 15:48:34 +0100
committerMelanie2012-06-15 15:48:34 +0100
commitff21007b93cfea55f6b66bb08d0ab0810fcc77b5 (patch)
tree3c91c2946b92676c16d0b84ded23315a9ad718bd /OpenSim/Region/Framework/Scenes/SceneObjectGroup.cs
parentMerge branch 'master' into careminster (diff)
parentReapply the one change that was in the revert that was actually function, not (diff)
downloadopensim-SC_OLD-ff21007b93cfea55f6b66bb08d0ab0810fcc77b5.zip
opensim-SC_OLD-ff21007b93cfea55f6b66bb08d0ab0810fcc77b5.tar.gz
opensim-SC_OLD-ff21007b93cfea55f6b66bb08d0ab0810fcc77b5.tar.bz2
opensim-SC_OLD-ff21007b93cfea55f6b66bb08d0ab0810fcc77b5.tar.xz
Merge branch 'avination' into careminster
Conflicts: OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs
Diffstat (limited to 'OpenSim/Region/Framework/Scenes/SceneObjectGroup.cs')
-rw-r--r--OpenSim/Region/Framework/Scenes/SceneObjectGroup.cs8
1 files changed, 6 insertions, 2 deletions
diff --git a/OpenSim/Region/Framework/Scenes/SceneObjectGroup.cs b/OpenSim/Region/Framework/Scenes/SceneObjectGroup.cs
index 5aeee52..8ed58a6 100644
--- a/OpenSim/Region/Framework/Scenes/SceneObjectGroup.cs
+++ b/OpenSim/Region/Framework/Scenes/SceneObjectGroup.cs
@@ -3030,10 +3030,14 @@ namespace OpenSim.Region.Framework.Scenes
3030 { 3030 {
3031 if (!m_rootPart.BlockGrab) 3031 if (!m_rootPart.BlockGrab)
3032 { 3032 {
3033 Vector3 llmoveforce = pos - AbsolutePosition; 3033/* Vector3 llmoveforce = pos - AbsolutePosition;
3034 Vector3 grabforce = llmoveforce; 3034 Vector3 grabforce = llmoveforce;
3035 grabforce = (grabforce / 10) * pa.Mass; 3035 grabforce = (grabforce / 10) * pa.Mass;
3036 pa.AddForce(grabforce, true); 3036 */
3037 // empirically convert distance diference to a impulse
3038 Vector3 grabforce = pos - AbsolutePosition;
3039 grabforce = grabforce * (pa.Mass/ 10.0f);
3040 pa.AddForce(grabforce, false);
3037 m_scene.PhysicsScene.AddPhysicsActorTaint(pa); 3041 m_scene.PhysicsScene.AddPhysicsActorTaint(pa);
3038 } 3042 }
3039 } 3043 }