2020-07-23 18:33:37 +02:00
|
|
|
|
#nullable enable
|
|
|
|
|
|
using Robust.Shared.GameObjects.Components;
|
|
|
|
|
|
using Robust.Shared.Maths;
|
|
|
|
|
|
using Robust.Shared.Physics;
|
|
|
|
|
|
|
|
|
|
|
|
namespace Content.Shared.Physics
|
|
|
|
|
|
{
|
|
|
|
|
|
public class ShuttleController : VirtualController
|
|
|
|
|
|
{
|
2020-10-11 16:36:58 +02:00
|
|
|
|
public override IPhysicsComponent? ControlledComponent { protected get; set; }
|
2020-07-23 18:33:37 +02:00
|
|
|
|
|
|
|
|
|
|
public void Push(Vector2 velocityDirection, float speed)
|
|
|
|
|
|
{
|
|
|
|
|
|
LinearVelocity = velocityDirection * speed;
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|