From 06a3fc95288b8301a3b872ec5b4e906240f76fef Mon Sep 17 00:00:00 2001 From: realtradam Date: Mon, 5 Jun 2023 04:40:58 -0400 Subject: begin rewrite to avoid exposed pointers --- include/rodeo/collision_t.h | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'include/rodeo/collision_t.h') diff --git a/include/rodeo/collision_t.h b/include/rodeo/collision_t.h index e75d243..21ffbf4 100644 --- a/include/rodeo/collision_t.h +++ b/include/rodeo/collision_t.h @@ -1,5 +1,9 @@ #pragma once +// -- internal -- +// public +#include "rodeo_types.h" + // -- system -- #include #include @@ -17,13 +21,9 @@ typedef struct { world_id id; - float x; - float y; + rodeo_rectangle_t rect; float dx; float dy; - bool is_circle; - float width; - float height; } rodeo_collision_2d_world_item_t; -- cgit v1.2.3