Refactored collision detection (last version before changing the algo)

This commit is contained in:
Karma Riuk
2023-04-25 12:09:07 +02:00
parent 6b049eb831
commit ad841588ad
2 changed files with 57 additions and 70 deletions

View File

@ -5,7 +5,7 @@
#include "vec2d.h"
struct collision {
bool collides;
bool collides = false;
vec2d n; // minimum push vector
vec2d impact_point;
};