diff options
author | omniscient <17525998+omnisci3nce@users.noreply.github.com> | 2024-08-12 00:15:33 +1000 |
---|---|---|
committer | omniscient <17525998+omnisci3nce@users.noreply.github.com> | 2024-08-12 00:15:33 +1000 |
commit | 72b8d26fcfcee36ca67f963b9c6a4b616e2d5d4d (patch) | |
tree | 76ab2c18db5a834c6282ab4e2afa2db33f70be27 /src/collision.c | |
parent | a8f98ddcf5ddeb3588492f4ad8f9a289147ad7ec (diff) |
scale is a vec3 now instead of float.
Diffstat (limited to 'src/collision.c')
-rw-r--r-- | src/collision.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/collision.c b/src/collision.c new file mode 100644 index 0000000..81cbcfc --- /dev/null +++ b/src/collision.c @@ -0,0 +1,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); +} |