fixed memoryleak,

added RayTestSingle to CollisionWorld
prepared to add VehicleDemo
This commit is contained in:
ejcoumans
2006-09-04 21:28:32 +00:00
parent 1048793061
commit a0c157ed85
10 changed files with 1131 additions and 4 deletions

View File

@@ -85,6 +85,11 @@ void OptimizedBvh::Build(StridingMeshInterface* triangles)
// OptimizedBvhNode* leafNodes = new OptimizedBvhNode;
}
OptimizedBvh::~OptimizedBvh()
{
if (m_contiguousNodes)
delete m_contiguousNodes;
}
OptimizedBvhNode* OptimizedBvh::BuildTree (NodeArray& leafNodes,int startIndex,int endIndex)
{