Rewrite collision detection

This commit is contained in:
Yousef Khadadeh 2026-05-24 11:58:52 +03:00
parent 7b472fe18d
commit 60ab8f3c73
35 changed files with 292 additions and 258 deletions

View file

@ -40,8 +40,8 @@ namespace SCollision {
max(initMax)
{}
AABB(const SkRect& r):
min(r.TL),
max(r.BR)
min(r.TL().x(), r.TL().y()),
max(r.BR().x(), r.BR().y())
{}
Vector<T, 2> min;
Vector<T, 2> max;