feat: New CollisionDetectionInformation

This commit is contained in:
Syntriax 2024-01-25 12:46:43 +03:00
parent 385defd8e6
commit 24cbc8a267
2 changed files with 12 additions and 10 deletions

View File

@ -0,0 +1,12 @@
using Syntriax.Engine.Core;
using Syntriax.Engine.Physics2D.Abstract;
namespace Syntriax.Engine.Physics2D;
public record CollisionDetectionInformation
(
ICollider2D Left,
ICollider2D Right,
Vector2D Normal,
float Penetration
);

View File

@ -1,10 +0,0 @@
using Syntriax.Engine.Core;
namespace Syntriax.Engine.Physics2D;
public record CollisionInformation
(
Vector2D Normal,
Vector2D ContactPosition
);