aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Framework/Scenes
diff options
context:
space:
mode:
authorUbitUmarov2012-06-12 01:26:03 +0100
committerUbitUmarov2012-06-12 01:26:03 +0100
commit24e8e5d8188dd2e8656feb5e43193e7475fa2acc (patch)
treecb2b76a9aee8f0bce68c3e4f386eb1cdbe1e5cc2 /OpenSim/Region/Framework/Scenes
parentchange object drag so it applies a impulse and not a push force so it works a... (diff)
downloadopensim-SC_OLD-24e8e5d8188dd2e8656feb5e43193e7475fa2acc.zip
opensim-SC_OLD-24e8e5d8188dd2e8656feb5e43193e7475fa2acc.tar.gz
opensim-SC_OLD-24e8e5d8188dd2e8656feb5e43193e7475fa2acc.tar.bz2
opensim-SC_OLD-24e8e5d8188dd2e8656feb5e43193e7475fa2acc.tar.xz
*UNTESTED* extended llGet*PrimitiveParam() to support avatars. Some auxiliar code in SOP.cs
Diffstat (limited to 'OpenSim/Region/Framework/Scenes')
-rw-r--r--OpenSim/Region/Framework/Scenes/ScenePresence.cs34
1 files changed, 34 insertions, 0 deletions
diff --git a/OpenSim/Region/Framework/Scenes/ScenePresence.cs b/OpenSim/Region/Framework/Scenes/ScenePresence.cs
index a810de2..21e2878 100644
--- a/OpenSim/Region/Framework/Scenes/ScenePresence.cs
+++ b/OpenSim/Region/Framework/Scenes/ScenePresence.cs
@@ -519,6 +519,40 @@ namespace OpenSim.Region.Framework.Scenes
519 } 519 }
520 } 520 }
521 521
522 // returns offset position relative to root prim of object when siting
523 public Vector3 OffsetPositionToSOGRoot
524 {
525 get
526 {
527 if (ParentPart != null)
528 return ParentPart.OffsetPosition + (m_pos * ParentPart.RotationOffset);
529 else
530 return m_pos;
531 }
532 }
533
534 public Quaternion OffsetRotationToSOGRoot
535 {
536 get
537 {
538 if (ParentPart != null)
539 return ParentPart.RotationOffset * Rotation;
540 else
541 return Rotation;
542 }
543 }
544
545 public Quaternion WorldRotation
546 {
547 get
548 {
549 if (ParentPart != null)
550 return ParentPart.GetWorldRotation() * Rotation;
551 else
552 return Rotation;
553 }
554 }
555
522 /// <summary> 556 /// <summary>
523 /// Current velocity of the avatar. 557 /// Current velocity of the avatar.
524 /// </summary> 558 /// </summary>