using Syntriax.Engine.Physics2D.Abstract; namespace Syntriax.Engine.Physics2D; /// /// Represents a 2D collision detector. /// public interface ICollisionDetector2D { /// /// Attempts to detect a collision between two s. /// /// Type of the first . /// Type of the second . /// The first . /// The second . /// Information about the collision. /// if a collision is detected, otherwise . bool TryDetect(T1 left, T2 right, out CollisionDetectionInformation collisionInformation) where T1 : ICollider2D where T2 : ICollider2D; }