feat: IPhysicsUpdate
This commit is contained in:
15
Engine.Physics2D/Abstract/IPhysicsUpdate.cs
Normal file
15
Engine.Physics2D/Abstract/IPhysicsUpdate.cs
Normal 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);
|
||||
}
|
Reference in New Issue
Block a user