Skip to content

Commit

Permalink
Revert "Make resetting contacts on the client only set is touching if…
Browse files Browse the repository at this point in the history
… it is true" (#5469)

This reverts commit cdb9474.
  • Loading branch information
metalgearsloth authored Sep 28, 2024
1 parent fb9b0ae commit 74e7e61
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Robust.Shared/Physics/Dynamics/Contacts/Contact.cs
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@
using System.Collections.Generic;
using System.Numerics;
using Robust.Shared.GameObjects;
using Robust.Shared.IoC;
using Robust.Shared.Maths;
using Robust.Shared.Physics.Collision;
using Robust.Shared.Physics.Collision.Shapes;
using Robust.Shared.Physics.Components;
Expand Down Expand Up @@ -259,9 +261,7 @@ internal void UpdateIsTouching(Transform bodyATransform, Transform bodyBTransfor
{
var manifold = Manifold;
Evaluate(ref manifold, bodyATransform, bodyBTransform);

if (IsTouching)
IsTouching = manifold.PointCount > 0;
IsTouching = manifold.PointCount > 0;
}
}

Expand Down

0 comments on commit 74e7e61

Please sign in to comment.