Revert "Update submodule (again)" (#7730)
This commit is contained in:
@@ -1,17 +1,18 @@
|
||||
using System.Collections.Generic;
|
||||
using Content.Server.Shuttles.Components;
|
||||
using Content.Shared.CCVar;
|
||||
using JetBrains.Annotations;
|
||||
using Robust.Shared.Configuration;
|
||||
using Robust.Shared.GameObjects;
|
||||
using Robust.Shared.IoC;
|
||||
using Robust.Shared.Physics;
|
||||
|
||||
namespace Content.Server.Shuttles.EntitySystems
|
||||
{
|
||||
[UsedImplicitly]
|
||||
public sealed class ShuttleSystem : EntitySystem
|
||||
internal sealed class ShuttleSystem : EntitySystem
|
||||
{
|
||||
[Dependency] private readonly FixtureSystem _fixtures = default!;
|
||||
|
||||
public const float TileMassMultiplier = 0.5f;
|
||||
public const float TileMassMultiplier = 4f;
|
||||
|
||||
public float ShuttleMaxLinearSpeed;
|
||||
|
||||
@@ -73,15 +74,11 @@ namespace Content.Server.Shuttles.EntitySystems
|
||||
// Look this is jank but it's a placeholder until we design it.
|
||||
if (args.NewFixtures.Count == 0) return;
|
||||
|
||||
var manager = Comp<FixturesComponent>(args.NewFixtures[0].Body.Owner);
|
||||
|
||||
foreach (var fixture in args.NewFixtures)
|
||||
{
|
||||
_fixtures.SetMass(fixture, fixture.Area * TileMassMultiplier, manager, false);
|
||||
_fixtures.SetRestitution(fixture, 0.1f, manager, false);
|
||||
fixture.Mass = fixture.Area * TileMassMultiplier;
|
||||
fixture.Restitution = 0.1f;
|
||||
}
|
||||
|
||||
_fixtures.FixtureUpdate(manager, args.NewFixtures[0].Body);
|
||||
}
|
||||
|
||||
private void OnGridInit(GridInitializeEvent ev)
|
||||
|
||||
Reference in New Issue
Block a user