Syntriax.Engine/Engine.Physics2D/Abstract/IPhysicsUpdate.cs

16 lines
531 B
C#
Raw Permalink Normal View History

2024-09-26 18:55:15 +03:00
using Syntriax.Engine.Core.Abstract;
namespace Syntriax.Engine.Physics2D.Abstract;
/// <summary>
/// Represents a <see cref="IBehaviour"/> that listens to physics simulation update phase.
/// </summary>
public interface IPhysicsUpdate : IBehaviour
{
/// <summary>
/// Updates the physics state of the object based on the elapsed time since the last update.
/// </summary>
/// <param name="delta">The time elapsed since the last physics update, typically in seconds.</param>
void PhysicsUpdate(float delta);
}