2024-01-23 18:39:25 +03:00
|
|
|
using System;
|
2024-01-25 21:54:39 +03:00
|
|
|
|
2024-01-23 18:39:25 +03:00
|
|
|
using Syntriax.Engine.Core.Abstract;
|
|
|
|
|
|
|
|
namespace Syntriax.Engine.Physics2D.Abstract;
|
|
|
|
|
|
|
|
public interface ICollider2D : IBehaviour, IAssignableTransform
|
|
|
|
{
|
|
|
|
Action<ICollider2D, ICollider2D>? OnCollisionPreResolve { get; set; }
|
2024-01-24 19:21:53 +03:00
|
|
|
Action<ICollider2D, ICollider2D>? OnCollisionResolved { get; set; }
|
2024-01-23 18:39:25 +03:00
|
|
|
|
|
|
|
IRigidBody2D? RigidBody2D { get; }
|
|
|
|
|
|
|
|
void Recalculate();
|
|
|
|
}
|