Refactor thrusters (#15698)

This commit is contained in:
metalgearsloth
2023-04-29 18:17:31 +10:00
committed by GitHub
parent b27f33fb1f
commit 1515a3faff
5 changed files with 105 additions and 121 deletions

View File

@@ -6,6 +6,18 @@ namespace Content.Server.Shuttles.Components
[ViewVariables]
public bool Enabled = true;
[ViewVariables]
public Vector2[] CenterOfThrust = new Vector2[4];
/// <summary>
/// Thrust gets multiplied by this value if it's for braking.
/// </summary>
public const float BrakeCoefficient = 1.5f;
public const float MaxLinearVelocity = 10f;
public const float MaxAngularVelocity = 1f;
/// <summary>
/// The cached thrust available for each cardinal direction
/// </summary>