19 lines
456 B
C#
19 lines
456 B
C#
|
|
#nullable enable
|
||
|
|
using Robust.Shared.GameObjects.Components;
|
||
|
|
using Robust.Shared.Maths;
|
||
|
|
using Robust.Shared.Physics;
|
||
|
|
|
||
|
|
namespace Content.Shared.Physics
|
||
|
|
{
|
||
|
|
public class SingularityController : VirtualController
|
||
|
|
{
|
||
|
|
public override IPhysicsComponent? ControlledComponent { protected get; set; }
|
||
|
|
|
||
|
|
|
||
|
|
public void Push(Vector2 velocityDirection, float speed)
|
||
|
|
{
|
||
|
|
LinearVelocity = velocityDirection * speed;
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|