Skip to content
Snippets Groups Projects
Commit 2a8ab163 authored by Sreekanth Arikatla's avatar Sreekanth Arikatla
Browse files

BUG: Fix bug in CCD

parent 2d34a269
No related branches found
No related tags found
No related merge requests found
......@@ -50,10 +50,13 @@ MeshToMeshCD::MeshToMeshCD(std::shared_ptr<SurfaceMesh> meshA,
void
MeshToMeshCD::computeCollisionData()
{
// Clear collisionData
m_colData.clearAll();
// Update model
m_modelA->UpdateVert(m_meshA->getVertexPositions());
m_modelB->UpdateVert(m_meshB->getVertexPositions());
m_modelB->UpdateBoxes();
m_modelA->UpdateBoxes();
m_modelB->UpdateBoxes();
// Update BVH
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment