Hey, i'm trying to implement SAT-collision detection and response and was wondering if someone could take a look at it and come with ideas on how to improve the resolving of the entity and get it more clean. Right now it doesn't quite work because it detects collision when e1 is close to (but outside) the corners of e2. and the TranslateEntity() just sets e1 on top of e2.
e1 is a isometric tile.
e2 is a plain square AABB tile.
Entity struct:
struct Entity
{
V3f pos;
V3f size;
V4f_COL col;
V2f texCoord;
V2f texDimension;
V2f points …