feat: Initial Physics Code From Previous Repo
This commit is contained in:
19
Engine.Physics2D/Abstract/ICollider2D.cs
Normal file
19
Engine.Physics2D/Abstract/ICollider2D.cs
Normal file
@@ -0,0 +1,19 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
using Syntriax.Engine.Core;
|
||||
using Syntriax.Engine.Core.Abstract;
|
||||
|
||||
namespace Syntriax.Engine.Physics2D.Abstract;
|
||||
|
||||
public interface ICollider2D : IBehaviour, IAssignableTransform
|
||||
{
|
||||
Action<ICollider2D, ICollider2D>? OnCollisionPreResolve { get; set; }
|
||||
|
||||
IRigidBody2D? RigidBody2D { get; }
|
||||
|
||||
IList<Vector2D> Vertices { get; }
|
||||
|
||||
bool CheckCollision(Vector2D point);
|
||||
void Recalculate();
|
||||
}
|
Reference in New Issue
Block a user