Files
RobustToolbox/Robust.Server/GameObjects/EntitySystems/PhysicsSystem.cs
T
2020-08-16 14:04:15 +02:00

22 lines
595 B
C#

using JetBrains.Annotations;
using Robust.Shared.GameObjects.Systems;
using System.Linq;
using Robust.Shared.GameObjects.Components;
namespace Robust.Server.GameObjects.EntitySystems
{
[UsedImplicitly]
public class PhysicsSystem : SharedPhysicsSystem
{
/// <inheritdoc />
public override void Update(float frameTime)
{
var collidableComponents = EntityManager.ComponentManager
.EntityQuery<ICollidableComponent>()
.ToList();
SimulateWorld(frameTime, collidableComponents, false);
}
}
}