diff --git a/src/collision.h b/src/collision.h new file mode 100644 index 0000000..7e1a953 --- /dev/null +++ b/src/collision.h @@ -0,0 +1,18 @@ +#ifndef _fencer_collision_h +#define _fencer_collision_h + +#include "shape.h" +#include + +struct Collision { + Shape* other; + + Vector point; + Vector normal; + Vector velocity; + + size_t edge_left; + size_t edge_right; +}; + +#endif // !_fencer_collision_h