Commit 2a8ab163 authored by Sreekanth Arikatla's avatar Sreekanth Arikatla
Browse files

BUG: Fix bug in CCD

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