docs: updated physics interface delta parameter comment

This commit is contained in:
Syntriax 2025-06-05 23:17:45 +03:00
parent f5fbd4e5ef
commit fbdea47dc7
4 changed files with 5 additions and 3 deletions

View File

@ -10,6 +10,6 @@ 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>
/// <param name="delta">The time elapsed since the last physics update.</param>
void PhysicsUpdate(float delta);
}

View File

@ -10,6 +10,6 @@ public interface IPostPhysicsUpdate : IBehaviour
/// <summary>
/// Execute logic that should occur after the physics simulation has been updated.
/// </summary>
/// <param name="delta">The time elapsed since the last physics update, typically in seconds.</param>
/// <param name="delta">The time elapsed since the last physics update.</param>
void PostPhysicsUpdate(float delta);
}

View File

@ -10,6 +10,6 @@ public interface IPrePhysicsUpdate : IBehaviour
/// <summary>
/// Execute logic that should occur before the physics simulation is updated.
/// </summary>
/// <param name="delta">The time elapsed since the last physics update, typically in seconds.</param>
/// <param name="delta">The time elapsed since the last physics update.</param>
void PrePhysicsUpdate(float delta);
}

View File

@ -187,6 +187,7 @@ public class PhysicsEngine2D : Behaviour, IPhysicsEngine2D
{
physicsPreUpdateCollector.Assign(universe);
physicsUpdateCollector.Assign(universe);
physicsIterationCollector.Assign(universe);
physicsPostUpdateCollector.Assign(universe);
colliderCollector.Assign(universe);
rigidBodyCollector.Assign(universe);
@ -198,6 +199,7 @@ public class PhysicsEngine2D : Behaviour, IPhysicsEngine2D
{
physicsPreUpdateCollector.Unassign();
physicsUpdateCollector.Unassign();
physicsIterationCollector.Unassign();
physicsPostUpdateCollector.Unassign();
colliderCollector.Unassign();
rigidBodyCollector.Unassign();