summaryrefslogtreecommitdiffhomepage
path: root/include/rodeo/collision_t.h
diff options
context:
space:
mode:
authorrealtradam <[email protected]>2023-06-05 04:40:58 -0400
committerrealtradam <[email protected]>2023-06-05 04:40:58 -0400
commit06a3fc95288b8301a3b872ec5b4e906240f76fef (patch)
tree27fc7b7fb2911e11c661cbebc6161c40cefb0f72 /include/rodeo/collision_t.h
parent6ffc61e72504f2a0e99831781ce060dada173aff (diff)
downloadRodeoKit-06a3fc95288b8301a3b872ec5b4e906240f76fef.tar.gz
RodeoKit-06a3fc95288b8301a3b872ec5b4e906240f76fef.zip
begin rewrite to avoid exposed pointers
Diffstat (limited to 'include/rodeo/collision_t.h')
-rw-r--r--include/rodeo/collision_t.h10
1 files changed, 5 insertions, 5 deletions
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 <stdint.h>
#include <stdbool.h>
@@ -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;