Logo Search packages:      
Sourcecode: blender version File versions  Download package

virtual void btGImpactShapeInterface::calcLocalAABB (  )  [inline, protected, virtual]

use this function for perfofm refit in bounding boxes

use this function for perfofm refit in bounding boxes

Reimplemented in btGImpactMeshShape.

Definition at line 88 of file btGImpactShape.h.

References btGImpactQuantizedBvh::buildSet(), btGImpactQuantizedBvh::getGlobalBox(), btGImpactQuantizedBvh::getNodeCount(), lockChildShapes(), and btGImpactQuantizedBvh::update().

Referenced by updateBound().

    {
            lockChildShapes();
      if(m_box_set.getNodeCount() == 0)
      {
            m_box_set.buildSet();
      }
      else
      {
            m_box_set.update();
      }
      unlockChildShapes();

      m_localAABB = m_box_set.getGlobalBox();
    }


Generated by  Doxygen 1.6.0   Back to index