diff options
author | Robert Adams | 2013-02-02 13:33:44 -0800 |
---|---|---|
committer | Robert Adams | 2013-02-05 16:56:17 -0800 |
commit | 2b6d22691141b8cdccfc44d25890f99e1f72b3dd (patch) | |
tree | 28e0010ae69cb47399ed12cdc75bb47e23e40eb7 /OpenSim/Region/Physics/BulletSPlugin | |
parent | Changed protection of CreateDefaultAppearanceEntries to protected, so extensi... (diff) | |
download | opensim-SC-2b6d22691141b8cdccfc44d25890f99e1f72b3dd.zip opensim-SC-2b6d22691141b8cdccfc44d25890f99e1f72b3dd.tar.gz opensim-SC-2b6d22691141b8cdccfc44d25890f99e1f72b3dd.tar.bz2 opensim-SC-2b6d22691141b8cdccfc44d25890f99e1f72b3dd.tar.xz |
BulletSim: correct angular vertical attraction to properly correct an upside down vehicle.
Diffstat (limited to '')
-rw-r--r-- | OpenSim/Region/Physics/BulletSPlugin/BSDynamics.cs | 2 |
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 | ||