aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Framework
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
parentMerge branch 'master' into careminster (diff)
parentReapply the one change that was in the revert that was actually function, not (diff)
downloadopensim-SC-ff21007b93cfea55f6b66bb08d0ab0810fcc77b5.zip
opensim-SC-ff21007b93cfea55f6b66bb08d0ab0810fcc77b5.tar.gz
opensim-SC-ff21007b93cfea55f6b66bb08d0ab0810fcc77b5.tar.bz2
opensim-SC-ff21007b93cfea55f6b66bb08d0ab0810fcc77b5.tar.xz
Merge branch 'avination' into careminster
Conflicts: OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs
Diffstat (limited to 'OpenSim/Region/Framework')
-rw-r--r--OpenSim/Region/Framework/Scenes/SceneObjectGroup.cs8
-rw-r--r--OpenSim/Region/Framework/Scenes/ScenePresence.cs3
2 files changed, 9 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 }
diff --git a/OpenSim/Region/Framework/Scenes/ScenePresence.cs b/OpenSim/Region/Framework/Scenes/ScenePresence.cs
index 310e21a..1fc9790 100644
--- a/OpenSim/Region/Framework/Scenes/ScenePresence.cs
+++ b/OpenSim/Region/Framework/Scenes/ScenePresence.cs
@@ -2394,7 +2394,10 @@ namespace OpenSim.Region.Framework.Scenes
2394 2394
2395 Vector3 up = new Vector3((float)x, (float)y, (float)z); 2395 Vector3 up = new Vector3((float)x, (float)y, (float)z);
2396 Vector3 sitOffset = up * Appearance.AvatarHeight * 0.02638f; 2396 Vector3 sitOffset = up * Appearance.AvatarHeight * 0.02638f;
2397
2397 m_pos = sitTargetPos + sitOffset + SIT_TARGET_ADJUSTMENT; 2398 m_pos = sitTargetPos + sitOffset + SIT_TARGET_ADJUSTMENT;
2399
2400// m_pos = sitTargetPos + SIT_TARGET_ADJUSTMENT - sitOffset;
2398 Rotation = sitTargetOrient; 2401 Rotation = sitTargetOrient;
2399 ParentPosition = part.AbsolutePosition; 2402 ParentPosition = part.AbsolutePosition;
2400 part.ParentGroup.AddAvatar(UUID); 2403 part.ParentGroup.AddAvatar(UUID);