Syntriax.Engine/Engine.Physics2D/Abstract/ICollider2D.cs

16 lines
413 B
C#
Raw Normal View History

using System;
2024-01-25 21:54:39 +03:00
using Syntriax.Engine.Core.Abstract;
namespace Syntriax.Engine.Physics2D.Abstract;
public interface ICollider2D : IBehaviour, IAssignableTransform
{
Action<ICollider2D, CollisionDetectionInformation>? OnCollisionDetected { get; set; }
2024-01-27 19:22:59 +03:00
Action<ICollider2D, CollisionDetectionInformation>? OnCollisionResolved { get; set; }
IRigidBody2D? RigidBody2D { get; }
void Recalculate();
}