got the speed working (yay) but the angular velocity that results is superrrr low, thus not creating any rotation after impact, wierd...

This commit is contained in:
Karma Riuk
2023-04-02 21:53:21 +02:00
parent 7dc54ddfe5
commit d0de911344
8 changed files with 390 additions and 52 deletions

15
collisions.h Normal file
View File

@ -0,0 +1,15 @@
#ifndef COLLISIONS_H_INCLUDED
#define COLLISIONS_H_INCLUDED
#include "polygons.h"
#include "vec2d.h"
struct collision {
bool collides;
vec2d n; // minimum push vector
vec2d impact_point;
};
extern collision collides(polygon& p, polygon& q);
#endif