feat: IPhysicsUpdate

This commit is contained in:
2024-09-26 18:55:15 +03:00
parent 15984bcc06
commit ffa0128813
2 changed files with 21 additions and 0 deletions

View File

@@ -0,0 +1,15 @@
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);
}