13
Content.Shared/Physics/ContainmentFieldRepellController.cs
Normal file
13
Content.Shared/Physics/ContainmentFieldRepellController.cs
Normal file
@@ -0,0 +1,13 @@
|
||||
#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;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user