diff options
author | Melanie | 2012-05-03 00:15:45 +0200 |
---|---|---|
committer | Melanie | 2012-05-03 00:15:45 +0200 |
commit | 8b1cc0dd29156cb3d10c66bfcb097fb7f9aa9f59 (patch) | |
tree | 04fb4bfde802563c412a137499e1d936f26bb874 | |
parent | Merge branch 'master' into careminster (diff) | |
parent | Improved sitted avatars crossings ( plus tests on vehicles) (diff) | |
download | opensim-SC_OLD-8b1cc0dd29156cb3d10c66bfcb097fb7f9aa9f59.zip opensim-SC_OLD-8b1cc0dd29156cb3d10c66bfcb097fb7f9aa9f59.tar.gz opensim-SC_OLD-8b1cc0dd29156cb3d10c66bfcb097fb7f9aa9f59.tar.bz2 opensim-SC_OLD-8b1cc0dd29156cb3d10c66bfcb097fb7f9aa9f59.tar.xz |
Merge branch 'avination'
-rw-r--r-- | CONTRIBUTORS.txt | 2 | ||||
-rw-r--r-- | OpenSim/Region/Framework/Scenes/SceneObjectGroup.cs | 16 | ||||
-rw-r--r-- | OpenSim/Region/Physics/UbitOdePlugin/ODEDynamics.cs | 11 |
3 files changed, 19 insertions, 10 deletions
diff --git a/CONTRIBUTORS.txt b/CONTRIBUTORS.txt index 8a1141f..bb0db0d 100644 --- a/CONTRIBUTORS.txt +++ b/CONTRIBUTORS.txt | |||
@@ -1,4 +1,4 @@ | |||
1 | <<<>>>>The following people have contributed to OpenSim (Thank you | 1 | <<<>>>>The following people have contributed to OpenSim (Thank you |
2 | for your effort!) | 2 | for your effort!) |
3 | 3 | ||
4 | = Current OpenSim Developers (in very rough order of appearance) = | 4 | = Current OpenSim Developers (in very rough order of appearance) = |
diff --git a/OpenSim/Region/Framework/Scenes/SceneObjectGroup.cs b/OpenSim/Region/Framework/Scenes/SceneObjectGroup.cs index dce20c1..42b6bc5 100644 --- a/OpenSim/Region/Framework/Scenes/SceneObjectGroup.cs +++ b/OpenSim/Region/Framework/Scenes/SceneObjectGroup.cs | |||
@@ -634,10 +634,18 @@ namespace OpenSim.Region.Framework.Scenes | |||
634 | ScenePresence agent = icon.EndInvoke(iar); | 634 | ScenePresence agent = icon.EndInvoke(iar); |
635 | 635 | ||
636 | //// If the cross was successful, this agent is a child agent | 636 | //// If the cross was successful, this agent is a child agent |
637 | //if (agent.IsChildAgent) | 637 | if (agent.IsChildAgent) |
638 | // agent.Reset(); | 638 | { |
639 | //else // Not successful | 639 | if (agent.ParentUUID != UUID.Zero) |
640 | // agent.RestoreInCurrentScene(); | 640 | { |
641 | agent.ParentPart = null; | ||
642 | agent.ParentPosition = Vector3.Zero; | ||
643 | } | ||
644 | } | ||
645 | |||
646 | // agent.Reset(); | ||
647 | // else // Not successful | ||
648 | // agent.RestoreInCurrentScene(); | ||
641 | 649 | ||
642 | // In any case | 650 | // In any case |
643 | agent.IsInTransit = false; | 651 | agent.IsInTransit = false; |
diff --git a/OpenSim/Region/Physics/UbitOdePlugin/ODEDynamics.cs b/OpenSim/Region/Physics/UbitOdePlugin/ODEDynamics.cs index 7b232c1..9fefc4e 100644 --- a/OpenSim/Region/Physics/UbitOdePlugin/ODEDynamics.cs +++ b/OpenSim/Region/Physics/UbitOdePlugin/ODEDynamics.cs | |||
@@ -793,10 +793,7 @@ namespace OpenSim.Region.Physics.OdePlugin | |||
793 | float perr; | 793 | float perr; |
794 | 794 | ||
795 | // default to global but don't go underground | 795 | // default to global but don't go underground |
796 | if (t < m_VhoverHeight) | 796 | perr = m_VhoverHeight - pos.Z; |
797 | perr = m_VhoverHeight - pos.Z; | ||
798 | else | ||
799 | perr = t - pos.Z; ; | ||
800 | 797 | ||
801 | if ((m_flags & VehicleFlag.HOVER_GLOBAL_HEIGHT) == 0) | 798 | if ((m_flags & VehicleFlag.HOVER_GLOBAL_HEIGHT) == 0) |
802 | { | 799 | { |
@@ -817,9 +814,13 @@ namespace OpenSim.Region.Physics.OdePlugin | |||
817 | perr += w; | 814 | perr += w; |
818 | } | 815 | } |
819 | } | 816 | } |
817 | else if (t > m_VhoverHeight) | ||
818 | perr = t - pos.Z; ; | ||
819 | |||
820 | if ((m_flags & VehicleFlag.HOVER_UP_ONLY) == 0 || perr > 0) | 820 | if ((m_flags & VehicleFlag.HOVER_UP_ONLY) == 0 || perr > 0) |
821 | { | 821 | { |
822 | force.Z += (perr / m_VhoverTimescale / m_VhoverTimescale - curVel.Z * m_VhoverEfficiency) / m_timestep; | 822 | // force.Z += (perr / m_VhoverTimescale / m_VhoverTimescale - curVel.Z * m_VhoverEfficiency) / m_timestep; |
823 | force.Z += (perr / m_VhoverTimescale - curVel.Z * m_VhoverEfficiency);// * m_invtimestep); | ||
823 | force.Z += _pParentScene.gravityz * (1f - m_VehicleBuoyancy); | 824 | force.Z += _pParentScene.gravityz * (1f - m_VehicleBuoyancy); |
824 | } | 825 | } |
825 | else // no buoyancy | 826 | else // no buoyancy |