Syntriax.Engine/Engine.Physics2D/ICollisionDetector.cs

11 lines
344 B
C#
Raw Normal View History

2024-01-25 18:32:13 +03:00
using System.Diagnostics.CodeAnalysis;
2024-01-25 18:21:52 +03:00
using Syntriax.Engine.Physics2D.Abstract;
namespace Syntriax.Engine.Physics2D;
public interface ICollisionDetector
{
2024-01-25 18:32:13 +03:00
bool TryDetect<T1, T2>(T1 left, T2 right, [NotNullWhen(returnValue: true)] out CollisionDetectionInformation? collisionInformation) where T1 : ICollider2D where T2 : ICollider2D;
2024-01-25 18:21:52 +03:00
}