Skip to content
This repository has been archived by the owner on Nov 1, 2024. It is now read-only.

Commit

Permalink
fix new PhysicsSystem
Browse files Browse the repository at this point in the history
  • Loading branch information
Sh1ntra committed Jun 15, 2024
1 parent d557283 commit 216c027
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Content.Shared/Corvax/Physics/FrictionRemoverSystem.cs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
using Content.Shared.EntityList;
using Content.Shared.Tiles;
using Robust.Shared.Physics;
using Robust.Shared.Physics.Components;
using Robust.Shared.Physics.Systems;
Expand All @@ -19,6 +21,9 @@ public override void Initialize()

private void RemoveDampening(EntityUid uid, PhysicsComponent component, PhysicsSleepEvent args)
{
if (EntityManager.TryGetComponent(uid, out ProtectedGridComponent? protectedGridComp))
return;

_physics.SetAngularDamping(component, 0, false);
_physics.SetLinearDamping(component, 0);
}
Expand Down

0 comments on commit 216c027

Please sign in to comment.