feat: New CollisionDetectionInformation
This commit is contained in:
parent
385defd8e6
commit
24cbc8a267
|
@ -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
|
||||||
|
);
|
|
@ -1,10 +0,0 @@
|
||||||
|
|
||||||
using Syntriax.Engine.Core;
|
|
||||||
|
|
||||||
namespace Syntriax.Engine.Physics2D;
|
|
||||||
|
|
||||||
public record CollisionInformation
|
|
||||||
(
|
|
||||||
Vector2D Normal,
|
|
||||||
Vector2D ContactPosition
|
|
||||||
);
|
|
Loading…
Reference in New Issue