Delta-v/Content.Shared/Physics/ContainmentFieldRepellContr...

13 lines
276 B
C#

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