19 lines
511 B
C#
19 lines
511 B
C#
using System;
|
|
|
|
using Syntriax.Engine.Core.Abstract;
|
|
|
|
namespace Syntriax.Engine.Physics2D.Abstract;
|
|
|
|
public interface ICollider2D : IBehaviour, IAssignableTransform
|
|
{
|
|
Action<ICollider2D, CollisionDetectionInformation>? OnCollisionDetected { get; set; }
|
|
Action<ICollider2D, CollisionDetectionInformation>? OnCollisionResolved { get; set; }
|
|
|
|
Action<ICollider2D, ICollider2D>? OnTriggered { get; set; }
|
|
|
|
IRigidBody2D? RigidBody2D { get; }
|
|
bool IsTrigger { get; set; }
|
|
|
|
void Recalculate();
|
|
}
|