Skip to content

Commit

Permalink
Do not check for collision on deactivated entities.
Browse files Browse the repository at this point in the history
  • Loading branch information
isadorasophia committed Dec 20, 2024
1 parent b0172d4 commit 8a9288b
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/Murder/Systems/Physics/TriggerPhysicsSystem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
using Bang.Systems;
using Murder.Components;
using Murder.Core.Physics;
using Murder.Helpers;
using Murder.Services;
using Murder.Utilities;
using System.Collections.Immutable;
Expand Down Expand Up @@ -120,9 +119,11 @@ public void OnAfterTrigger(World world)
}
}
}

// Check for active entities.
CheckCollision(entity, qt, world);
else
{
// Check for active entities.
CheckCollision(entity, qt, world);
}
}

// Clear the list for the next frame.
Expand Down

0 comments on commit 8a9288b

Please # to comment.