aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Physics/PhysXPlugin
diff options
context:
space:
mode:
authorCharles Krinke2009-03-06 23:01:35 +0000
committerCharles Krinke2009-03-06 23:01:35 +0000
commitb637a11b58292cb6165317b317dc077a79ee6779 (patch)
tree18d9b2e82ae782fec726f3baa2d60c76433a7406 /OpenSim/Region/Physics/PhysXPlugin
parentadd back .config files for all tests in an attempt to debug why these (diff)
downloadopensim-SC_OLD-b637a11b58292cb6165317b317dc077a79ee6779.zip
opensim-SC_OLD-b637a11b58292cb6165317b317dc077a79ee6779.tar.gz
opensim-SC_OLD-b637a11b58292cb6165317b317dc077a79ee6779.tar.bz2
opensim-SC_OLD-b637a11b58292cb6165317b317dc077a79ee6779.tar.xz
Fixes Mantis #3260. Thank you kindly, MCortez for a patch that:
llSetHoverHeight() should not clamp the x/y position of an object the way MoveTo does, and it should recalculate the absolute height to hover at as an object moves to reflect the current ground/water height under it. Correctly implementing required adjusting the Physics interfaces and implementing at the physics plug-in level. The attached is a patch that correctly implements llSetHoverHeight() including updates to the ODE physics plug-in.
Diffstat (limited to 'OpenSim/Region/Physics/PhysXPlugin')
-rw-r--r--OpenSim/Region/Physics/PhysXPlugin/PhysXPlugin.cs13
1 files changed, 13 insertions, 0 deletions
diff --git a/OpenSim/Region/Physics/PhysXPlugin/PhysXPlugin.cs b/OpenSim/Region/Physics/PhysXPlugin/PhysXPlugin.cs
index 120eed9..7bbca9d 100644
--- a/OpenSim/Region/Physics/PhysXPlugin/PhysXPlugin.cs
+++ b/OpenSim/Region/Physics/PhysXPlugin/PhysXPlugin.cs
@@ -490,9 +490,16 @@ namespace OpenSim.Region.Physics.PhysXPlugin
490 { 490 {
491 491
492 } 492 }
493
493 public override PhysicsVector PIDTarget { set { return; } } 494 public override PhysicsVector PIDTarget { set { return; } }
494 public override bool PIDActive { set { return; } } 495 public override bool PIDActive { set { return; } }
495 public override float PIDTau { set { return; } } 496 public override float PIDTau { set { return; } }
497
498 public override float PIDHoverHeight { set { return; } }
499 public override bool PIDHoverActive { set { return; } }
500 public override PIDHoverType PIDHoverType { set { return; } }
501 public override float PIDHoverTau { set { return; } }
502
496 public override void SubscribeEvents(int ms) 503 public override void SubscribeEvents(int ms)
497 { 504 {
498 505
@@ -765,10 +772,16 @@ namespace OpenSim.Region.Physics.PhysXPlugin
765 public override void CrossingFailure() 772 public override void CrossingFailure()
766 { 773 {
767 } 774 }
775
768 public override PhysicsVector PIDTarget { set { return; } } 776 public override PhysicsVector PIDTarget { set { return; } }
769 public override bool PIDActive { set { return; } } 777 public override bool PIDActive { set { return; } }
770 public override float PIDTau { set { return; } } 778 public override float PIDTau { set { return; } }
771 779
780 public override float PIDHoverHeight { set { return; } }
781 public override bool PIDHoverActive { set { return; } }
782 public override PIDHoverType PIDHoverType { set { return; } }
783 public override float PIDHoverTau { set { return; } }
784
772 public override void SubscribeEvents(int ms) 785 public override void SubscribeEvents(int ms)
773 { 786 {
774 787