namespace Syntriax.Engine.Physics2D.Abstract; /// /// Represents a 2D physics engine. /// public interface IPhysicsEngine2D { /// /// Event triggered when the has done a single physics iteration. /// event OnPhysicsIterationDelegate? OnPhysicsIteration; /// /// Event triggered when the has done a full physics step/>. /// event OnPhysicsStepDelegate? OnPhysicsStep; /// /// The number of iterations the performs per step. /// int IterationPerStep { get; set; } /// /// Advances the physics simulation by the specified time. /// /// The time step. void Step(float deltaTime); delegate void OnPhysicsIterationDelegate(IPhysicsEngine2D sender, float iterationDeltaTime); delegate void OnPhysicsStepDelegate(IPhysicsEngine2D sender, float stepDeltaTime); }