mirror of
https://github.com/space-wizards/RobustToolbox.git
synced 2026-09-02 18:17:09 +02:00
BodyType is now serializable, fixes bug with VV. Moved both velocity properties from ICollidableComponent to IPhysBody, added default methods to IPhysBody to get the word transform. Added DebugTools.Break() method, calling it breaks execution in the attacked debugger. Added VV attributes to various CollidableComponent properties.
27 lines
772 B
C#
27 lines
772 B
C#
using System.Collections.Generic;
|
|
using JetBrains.Annotations;
|
|
using Robust.Server.Interfaces.Timing;
|
|
using Robust.Shared.GameObjects.Systems;
|
|
using Robust.Shared.IoC;
|
|
using System.Linq;
|
|
using Robust.Shared.GameObjects.Components;
|
|
|
|
namespace Robust.Server.GameObjects.EntitySystems
|
|
{
|
|
[UsedImplicitly]
|
|
public class PhysicsSystem : SharedPhysicsSystem
|
|
{
|
|
[Dependency] private readonly IPauseManager _pauseManager = default!;
|
|
|
|
/// <inheritdoc />
|
|
public override void Update(float frameTime)
|
|
{
|
|
var collidableComponents = EntityManager.ComponentManager
|
|
.EntityQuery<ICollidableComponent>()
|
|
.ToList();
|
|
|
|
SimulateWorld(frameTime, collidableComponents, false);
|
|
}
|
|
}
|
|
}
|