Files
crystall-punk-14/Content.Shared/Physics/ContainmentFieldRepellController.cs

14 lines
293 B
C#
Raw Normal View History

#nullable enable
using Robust.Shared.Maths;
namespace Content.Shared.Physics
{
public class ContainmentFieldRepellController : FrictionController
{
public void Repell(Direction dir, float speed)
{
LinearVelocity = dir.ToVec() * speed;
}
}
}