feat: Basic Collider

This commit is contained in:
2023-12-01 17:42:07 +03:00
parent 670842c1e3
commit 0649494f9c
7 changed files with 288 additions and 82 deletions

View File

@@ -14,10 +14,10 @@ public interface ICollider2D : IBehaviour, IAssignableTransform
Vector2 OffsetPosition { get; set; }
Vector2 OffsetScale { get; set; }
float OffsetRotation { get; set; }
IReadOnlyList<Vector2> Vertices { get; }
bool CheckCollision(ICollider2D collider);
bool CheckCollision(Vector2 point, ICollider2D otherCollider);
void RecalculateVertices();
}