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
|
|
|
|
{
|
2024-01-27 19:59:27 +03:00
|
|
|
Action<ICollider2D, CollisionDetectionInformation>? OnCollisionDetected { get; set; }
|
2024-01-27 19:22:59 +03:00
|
|
|
Action<ICollider2D, CollisionDetectionInformation>? OnCollisionResolved { get; set; }
|
2024-01-23 18:39:25 +03:00
|
|
|
|
|
|
|
IRigidBody2D? RigidBody2D { get; }
|
2024-01-27 20:19:00 +03:00
|
|
|
bool IsTrigger { get; set; }
|
2024-01-23 18:39:25 +03:00
|
|
|
|
|
|
|
void Recalculate();
|
|
|
|
}
|