add support for premade aabb in btStridingMeshInterface/btBvhTriangleMeshShape,

Thanks Roy Eltham, http://code.google.com/p/bullet/issues/detail?id=70
This commit is contained in:
erwin.coumans
2008-08-29 05:39:17 +00:00
parent 80f80df7e3
commit f655eff89f
5 changed files with 47 additions and 5 deletions

View File

@@ -24,7 +24,14 @@ subject to the following restrictions:
btTriangleMeshShape::btTriangleMeshShape(btStridingMeshInterface* meshInterface)
: m_meshInterface(meshInterface)
{
recalcLocalAabb();
if(meshInterface->hasPremadeAabb())
{
meshInterface->getPremadeAabb(&m_localAabbMin, &m_localAabbMax);
}
else
{
recalcLocalAabb();
}
}