Content update for ECS physics (#13291)
This commit is contained in:
@@ -381,7 +381,10 @@ public abstract class SharedDoorSystem : EntitySystem
|
||||
#endregion
|
||||
|
||||
#region Collisions
|
||||
protected virtual void SetCollidable(EntityUid uid, bool collidable,
|
||||
|
||||
protected virtual void SetCollidable(
|
||||
EntityUid uid,
|
||||
bool collidable,
|
||||
DoorComponent? door = null,
|
||||
PhysicsComponent? physics = null,
|
||||
OccluderComponent? occluder = null)
|
||||
@@ -390,13 +393,13 @@ public abstract class SharedDoorSystem : EntitySystem
|
||||
return;
|
||||
|
||||
if (Resolve(uid, ref physics, false))
|
||||
PhysicsSystem.SetCanCollide(physics, collidable);
|
||||
PhysicsSystem.SetCanCollide(uid, collidable, body: physics);
|
||||
|
||||
if (!collidable)
|
||||
door.CurrentlyCrushing.Clear();
|
||||
|
||||
if (door.Occludes)
|
||||
_occluder.SetEnabled(uid, collidable);
|
||||
_occluder.SetEnabled(uid, collidable, occluder);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
||||
Reference in New Issue
Block a user