added collision struct to describe a collision between two entities

This commit is contained in:
Sara 2023-10-06 23:45:31 +02:00
parent a00ad5f022
commit 32c8b93d40

18
src/collision.h Normal file
View file

@ -0,0 +1,18 @@
#ifndef _fencer_collision_h
#define _fencer_collision_h
#include "shape.h"
#include <stddef.h>
struct Collision {
Shape* other;
Vector point;
Vector normal;
Vector velocity;
size_t edge_left;
size_t edge_right;
};
#endif // !_fencer_collision_h