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.

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;
      disc += (center).length();
      return disc;

Generated by  Doxygen 1.6.0   Back to index