feat: IPhysicsEngine2D.StepIndividual method for individual object simulation

This commit is contained in:
2025-05-27 15:54:07 +03:00
parent 4213b3f8b5
commit a3b03efd47
3 changed files with 190 additions and 76 deletions

View File

@@ -26,6 +26,13 @@ public interface IPhysicsEngine2D
/// <param name="deltaTime">The time step.</param>
void Step(float deltaTime);
/// <summary>
/// Advances the physics simulation by the specified time on a single <see cref="IRigidBody2D"/>.
/// </summary>
/// <param name="rigidBody">The <see cref="IRigidBody2D"/> to be progressed individually.</param>
/// <param name="deltaTime">The time step.</param>
void StepIndividual(IRigidBody2D rigidBody, float deltaTime);
delegate void PhysicsIterationEventHandler(IPhysicsEngine2D sender, float iterationDeltaTime);
delegate void PhysicsStepEventHandler(IPhysicsEngine2D sender, float stepDeltaTime);
}