Disable collide against non-Hard fixtures (#12277)
Co-authored-by: Alex Klos <alexklos@prohobo.dev>
This commit is contained in:
parent
8c52dac3f3
commit
7fd34c1093
1 changed files with 3 additions and 1 deletions
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue