21 lines
459 B
C#
21 lines
459 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
|
|
using Microsoft.Xna.Framework;
|
|
|
|
using Syntriax.Engine.Core.Abstract;
|
|
|
|
namespace Syntriax.Engine.Physics2D.Abstract;
|
|
|
|
public interface ICollider2D : IBehaviour, IAssignableTransform
|
|
{
|
|
Action<ICollider2D, ICollider2D>? OnCollisionPreResolve { get; set; }
|
|
|
|
IRigidBody2D? RigidBody2D { get; }
|
|
|
|
IReadOnlyList<Vector2> Vertices { get; }
|
|
|
|
bool CheckCollision(Vector2 point);
|
|
void Recalculate();
|
|
}
|