Skip to content

Commit

Permalink
CollisionHandler.h:
Browse files Browse the repository at this point in the history
* No need to include the test indices in the NarrowPhaseCollData struct as they are never used in practice.
  • Loading branch information
razterizer committed Nov 8, 2024
1 parent 984c7e6 commit 6461385
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions Dynamics/CollisionHandler.h
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,6 @@ namespace dynamics
{
BVH_Node* node_A = nullptr;
BVH_Node* node_B = nullptr;
std::vector<int> idx_A, idx_B;
std::vector<Vec2> local_pos_A, local_pos_B;
};

Expand Down Expand Up @@ -241,8 +240,6 @@ namespace dynamics
//std::cout << "Collision!!!" << std::endl;
cdata.node_A = prox_pair.first;
cdata.node_B = prox_pair.second;
cdata.idx_A.emplace_back(idx_A);
cdata.idx_B.emplace_back(idx_B);
cdata.local_pos_A.emplace_back(r_rel_A, c_rel_A);
cdata.local_pos_B.emplace_back(r_rel_B, c_rel_B);
}
Expand Down

0 comments on commit 6461385

Please sign in to comment.