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:
@@ -30,7 +30,14 @@ m_ownsBvh(false)
|
||||
#ifndef DISABLE_BVH
|
||||
|
||||
btVector3 bvhAabbMin,bvhAabbMax;
|
||||
meshInterface->calculateAabbBruteForce(bvhAabbMin,bvhAabbMax);
|
||||
if(meshInterface->hasPremadeAabb())
|
||||
{
|
||||
meshInterface->getPremadeAabb(&bvhAabbMin, &bvhAabbMax);
|
||||
}
|
||||
else
|
||||
{
|
||||
meshInterface->calculateAabbBruteForce(bvhAabbMin,bvhAabbMax);
|
||||
}
|
||||
|
||||
if (buildBvh)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user