aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Framework
diff options
context:
space:
mode:
authorUbitUmarov2015-09-30 17:34:25 +0100
committerUbitUmarov2015-09-30 17:34:25 +0100
commit4a2e6db3447ee5b4f74b9dae79702ed18d6de5e3 (patch)
tree59b6818d6b9354a89d895bdda5e44882a6c2b26f /OpenSim/Region/Framework
parent some fixes/changes on land send (diff)
downloadopensim-SC-4a2e6db3447ee5b4f74b9dae79702ed18d6de5e3.zip
opensim-SC-4a2e6db3447ee5b4f74b9dae79702ed18d6de5e3.tar.gz
opensim-SC-4a2e6db3447ee5b4f74b9dae79702ed18d6de5e3.tar.bz2
opensim-SC-4a2e6db3447ee5b4f74b9dae79702ed18d6de5e3.tar.xz
add high level code suport for SetHoverHeight() called from a attachment, so in future physics engines can also suport it
Diffstat (limited to '')
-rw-r--r--OpenSim/Region/Framework/Scenes/SceneObjectGroup.cs10
1 files changed, 9 insertions, 1 deletions
diff --git a/OpenSim/Region/Framework/Scenes/SceneObjectGroup.cs b/OpenSim/Region/Framework/Scenes/SceneObjectGroup.cs
index 22b81dc..a4a33a4 100644
--- a/OpenSim/Region/Framework/Scenes/SceneObjectGroup.cs
+++ b/OpenSim/Region/Framework/Scenes/SceneObjectGroup.cs
@@ -2579,7 +2579,15 @@ namespace OpenSim.Region.Framework.Scenes
2579 /// <param name="tau">Number of seconds over which to reach target</param> 2579 /// <param name="tau">Number of seconds over which to reach target</param>
2580 public void SetHoverHeight(float height, PIDHoverType hoverType, float tau) 2580 public void SetHoverHeight(float height, PIDHoverType hoverType, float tau)
2581 { 2581 {
2582 PhysicsActor pa = RootPart.PhysActor; 2582 PhysicsActor pa = null;
2583 if(IsAttachment)
2584 {
2585 ScenePresence avatar = m_scene.GetScenePresence(AttachedAvatar);
2586 if (avatar != null)
2587 pa = avatar.PhysicsActor;
2588 }
2589 else
2590 pa = RootPart.PhysActor;
2583 2591
2584 if (pa != null) 2592 if (pa != null)
2585 { 2593 {