mirror of
https://github.com/opensim/opensim.git
synced 2026-08-05 00:46:02 +08:00
BulletSim: correct angular vertical attraction to properly correct an upside down vehicle.
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user