Logo Search packages:      
Sourcecode: blender version File versions

btScalar btCollisionShape::getAngularMotionDisc (  )  const [virtual, inherited]

getAngularMotionDisc returns the maximus radius needed for Conservative Advancement to handle time-of-impact with rotations.

Todo:
cache this value, to improve performance

Definition at line 52 of file btCollisionShape.cpp.

Referenced by btCollisionShape::calculateTemporalAabb().

{
      ///@todo cache this value, to improve performance
      btVector3   center;
      btScalar disc;
      getBoundingSphere(center,disc);
      disc += (center).length();
      return disc;
}


Generated by  Doxygen 1.6.0   Back to index