BulletSim: correct angular vertical attraction to properly correct an upside down vehicle.

user_profiles
Robert Adams 2013-02-02 13:33:44 -08:00
parent 4cdee3dd3c
commit 2b6d226911
1 changed files with 1 additions and 1 deletions

View File

@ -1326,7 +1326,7 @@ namespace OpenSim.Region.Physics.BulletSPlugin
// If verticalError.Z is negative, the vehicle is upside down. Add additional push.
if (verticalError.Z < 0f)
{
vertContributionV.X += PIOverFour;
vertContributionV.X += Math.Sign(vertContributionV.X) * PIOverFour;
// vertContribution.Y -= PIOverFour;
}