Fixture updates (#15254)

This commit is contained in:
metalgearsloth
2023-05-06 16:26:15 +10:00
committed by GitHub
parent 8ec884e5c0
commit dcb10d4061
240 changed files with 101128 additions and 114853 deletions

View File

@@ -254,13 +254,6 @@ namespace Content.Server.Shuttles.Systems
{
Undock(uid, component);
}
if (!TryComp(uid, out PhysicsComponent? physicsComponent))
{
return;
}
_fixtureSystem.DestroyFixture(uid, DockingFixture, body: physicsComponent);
}
private void EnableDocking(EntityUid uid, DockingComponent component)
@@ -278,6 +271,7 @@ namespace Content.Server.Shuttles.Systems
// Listen it makes intersection tests easier; you can probably dump this but it requires a bunch more boilerplate
// TODO: I want this to ideally be 2 fixtures to force them to have some level of alignment buuuttt
// I also need collisionmanager for that yet again so they get dis.
// TODO: CollisionManager is fine so get to work sloth chop chop.
_fixtureSystem.TryCreateFixture(uid, shape, DockingFixture, hard: false, body: physicsComponent);
}