diff options
Diffstat (limited to 'src/crepe/Collider.h')
-rw-r--r-- | src/crepe/Collider.h | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/crepe/Collider.h b/src/crepe/Collider.h index 827f83d..5b26af5 100644 --- a/src/crepe/Collider.h +++ b/src/crepe/Collider.h @@ -1,14 +1,19 @@ #pragma once +#include "api/Vector2.h" + #include "Component.h" +#include "types.h" namespace crepe { class Collider : public Component { public: - Collider(game_object_id_t id); + Collider(game_object_id_t id, vec2 offset); - int size; +public: + //! Offset of the collider relative to rigidbody position + vec2 offset; }; } // namespace crepe |