InAir tweaks & chasm fixes (#19707)
This commit is contained in:
@@ -354,7 +354,6 @@ public abstract class SharedSingularitySystem : EntitySystem
|
||||
/// <param name="args">The event arguments.</param>
|
||||
private void UpdateBody(EntityUid uid, PhysicsComponent comp, SingularityLevelChangedEvent args)
|
||||
{
|
||||
_physics.SetBodyStatus(comp, (args.NewValue > 1) ? BodyStatus.InAir : BodyStatus.OnGround);
|
||||
if (args.NewValue <= 1 && args.OldValue > 1) // Apparently keeps singularities from getting stuck in the corners of containment fields.
|
||||
_physics.SetLinearVelocity(uid, Vector2.Zero, body: comp); // No idea how stopping the singularities movement keeps it from getting stuck though.
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user