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