aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Physics
diff options
context:
space:
mode:
authorRobert Adams2013-02-02 13:33:44 -0800
committerRobert Adams2013-02-05 16:56:17 -0800
commit2b6d22691141b8cdccfc44d25890f99e1f72b3dd (patch)
tree28e0010ae69cb47399ed12cdc75bb47e23e40eb7 /OpenSim/Region/Physics
parentChanged protection of CreateDefaultAppearanceEntries to protected, so extensi... (diff)
downloadopensim-SC_OLD-2b6d22691141b8cdccfc44d25890f99e1f72b3dd.zip
opensim-SC_OLD-2b6d22691141b8cdccfc44d25890f99e1f72b3dd.tar.gz
opensim-SC_OLD-2b6d22691141b8cdccfc44d25890f99e1f72b3dd.tar.bz2
opensim-SC_OLD-2b6d22691141b8cdccfc44d25890f99e1f72b3dd.tar.xz
BulletSim: correct angular vertical attraction to properly correct an upside down vehicle.
Diffstat (limited to 'OpenSim/Region/Physics')
-rw-r--r--OpenSim/Region/Physics/BulletSPlugin/BSDynamics.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/OpenSim/Region/Physics/BulletSPlugin/BSDynamics.cs b/OpenSim/Region/Physics/BulletSPlugin/BSDynamics.cs
index 8ecf2ff..b51e9fd 100644
--- a/OpenSim/Region/Physics/BulletSPlugin/BSDynamics.cs
+++ b/OpenSim/Region/Physics/BulletSPlugin/BSDynamics.cs
@@ -1326,7 +1326,7 @@ namespace OpenSim.Region.Physics.BulletSPlugin
1326 // If verticalError.Z is negative, the vehicle is upside down. Add additional push. 1326 // If verticalError.Z is negative, the vehicle is upside down. Add additional push.
1327 if (verticalError.Z < 0f) 1327 if (verticalError.Z < 0f)
1328 { 1328 {
1329 vertContributionV.X += PIOverFour; 1329 vertContributionV.X += Math.Sign(vertContributionV.X) * PIOverFour;
1330 // vertContribution.Y -= PIOverFour; 1330 // vertContribution.Y -= PIOverFour;
1331 } 1331 }
1332 1332