Skip to content

Commit

Permalink
Exploit symmetry
Browse files Browse the repository at this point in the history
  • Loading branch information
notgiven688 committed Dec 17, 2024
1 parent 84abc04 commit f8b943d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Jitter2/Collision/DynamicTree.cs
Original file line number Diff line number Diff line change
Expand Up @@ -557,7 +557,7 @@ private void OverlapCheck(int index, int node, bool add)
{
if (Nodes[index].IsLeaf)
{
if (node == index) return;
if (node <= index) return;

if (!Filter(Nodes[node].Proxy, Nodes[index].Proxy)) return;

Expand Down

0 comments on commit f8b943d

Please sign in to comment.