mirror of
https://github.com/space-wizards/RobustToolbox.git
synced 2026-02-15 03:30:53 +01:00
Don't raise wake events for terminating contacts (#5757)
This commit is contained in:
@@ -350,10 +350,10 @@ public abstract partial class SharedPhysicsSystem
|
||||
|
||||
if (contact.Manifold.PointCount > 0 && contact.FixtureA?.Hard == true && contact.FixtureB?.Hard == true)
|
||||
{
|
||||
if (bodyA.CanCollide)
|
||||
if (bodyA.CanCollide && !TerminatingOrDeleted(aUid))
|
||||
SetAwake((aUid, bodyA), true);
|
||||
|
||||
if (bodyB.CanCollide)
|
||||
if (bodyB.CanCollide && !TerminatingOrDeleted(bUid))
|
||||
SetAwake((bUid, bodyB), true);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user