Bulletsim: and the rotational friction.
Signed-off-by: Robert Adams <Robert.Adams@intel.com>user_profiles
							parent
							
								
									f247ae1a75
								
							
						
					
					
						commit
						ac6dcd35fb
					
				| 
						 | 
					@ -1339,11 +1339,13 @@ namespace OpenSim.Region.Physics.BulletSPlugin
 | 
				
			||||||
            //    angularMotorContributionV.Y = 0f;
 | 
					            //    angularMotorContributionV.Y = 0f;
 | 
				
			||||||
          //  }
 | 
					          //  }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					            // Reduce any velocity by friction.
 | 
				
			||||||
 | 
					            Vector3 frictionFactorW = ComputeFrictionFactor(m_angularFrictionTimescale, pTimestep);
 | 
				
			||||||
 | 
					            angularMotorContributionV -= (currentAngularV * frictionFactorW);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
            VehicleRotationalVelocity += angularMotorContributionV * VehicleOrientation;
 | 
					            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);
 | 
					            VDetailLog("{0},  MoveAngular,angularTurning,angContribV={1}", ControllingPrim.LocalID, angularMotorContributionV);
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue