Disable collide against non-Hard fixtures (#12277)

Co-authored-by: Alex Klos <alexklos@prohobo.dev>
This commit is contained in:
Alex Klos
2022-10-30 20:55:07 +01:00
committed by GitHub
parent 8c52dac3f3
commit 7fd34c1093

View File

@@ -2,7 +2,6 @@ using Content.Shared.StepTrigger.Components;
using Robust.Shared.Collections;
using Robust.Shared.GameStates;
using Robust.Shared.Physics.Components;
using Robust.Shared.Physics.Dynamics;
using Robust.Shared.Physics.Events;
namespace Content.Shared.StepTrigger.Systems;
@@ -103,6 +102,9 @@ public sealed class StepTriggerSystem : EntitySystem
{
var otherUid = args.OtherFixture.Body.Owner;
if (!args.OtherFixture.Hard)
return;
if (!CanTrigger(uid, otherUid, component))
return;