summaryrefslogtreecommitdiff
path: root/archive/src/collision.c
blob: 81cbcfc6323c2dd7e8259e6c67c90aae7c1768a6 (plain)
1
2
3
4
5
6
7
8
9
#include "immdraw.h"
#include "maths.h"
#include "maths_types.h"
#include "physics.h"

PUB void Debug_DrawOBB(OBB obb) {
  Transform t = transform_create(obb.center, obb.rotation, vec3_sub(obb.bbox.max, obb.bbox.min));
  Immdraw_Cuboid(t, vec4(0.0, 0.8, 0.1, 1.0), true);
}