Bulletsim: and the rotational friction.

Signed-off-by: Robert Adams <Robert.Adams@intel.com>
This commit is contained in:
Vegaslon
2013-05-06 21:19:48 -04:00
committed by Robert Adams
parent f247ae1a75
commit ac6dcd35fb

View File

@@ -1339,11 +1339,13 @@ namespace OpenSim.Region.Physics.BulletSPlugin
// angularMotorContributionV.Y = 0f;
// }
// Reduce any velocity by friction.
Vector3 frictionFactorW = ComputeFrictionFactor(m_angularFrictionTimescale, pTimestep);
angularMotorContributionV -= (currentAngularV * frictionFactorW);
VehicleRotationalVelocity += angularMotorContributionV * VehicleOrientation;
// Reduce any velocity by friction.
Vector3 frictionFactorW = ComputeFrictionFactor(m_angularFrictionTimescale, pTimestep) * VehicleOrientation;
VehicleRotationalVelocity -= (VehicleRotationalVelocity * frictionFactorW);
VDetailLog("{0}, MoveAngular,angularTurning,angContribV={1}", ControllingPrim.LocalID, angularMotorContributionV);
}