refactor: Renamed ICollisionDetector to ICollisionDetector2D

This commit is contained in:
Syntriax 2024-01-27 19:58:31 +03:00
parent 309c8db6e1
commit 05d88f7ca2
3 changed files with 3 additions and 3 deletions

View File

@ -2,7 +2,7 @@ using Syntriax.Engine.Physics2D.Abstract;
namespace Syntriax.Engine.Physics2D;
public interface ICollisionDetector
public interface ICollisionDetector2D
{
bool TryDetect<T1, T2>(T1 left, T2 right, out CollisionDetectionInformation collisionInformation) where T1 : ICollider2D where T2 : ICollider2D;
}

View File

@ -4,7 +4,7 @@ using Syntriax.Engine.Physics2D.Primitives;
namespace Syntriax.Engine.Physics2D;
public class CollisionDetector : ICollisionDetector
public class CollisionDetector2D : ICollisionDetector2D
{
public bool TryDetect<T1, T2>(T1 left, T2 right, out CollisionDetectionInformation collisionInformation)
where T1 : ICollider2D

View File

@ -12,7 +12,7 @@ public class PhysicsEngine2D : IPhysicsEngine2D
private readonly List<ICollider2D> colliders = new(64);
private int _iterationCount = 1;
private ICollisionDetector collisionDetector = new CollisionDetector();
private ICollisionDetector2D collisionDetector = new CollisionDetector2D();
public int IterationCount { get => _iterationCount; set => _iterationCount = value < 1 ? 1 : value; }