aboutsummaryrefslogtreecommitdiff
path: root/src/crepe/Collider.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/crepe/Collider.h')
-rw-r--r--src/crepe/Collider.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/crepe/Collider.h b/src/crepe/Collider.h
index 827f83d..0157324 100644
--- a/src/crepe/Collider.h
+++ b/src/crepe/Collider.h
@@ -1,14 +1,18 @@
#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;
+public:
+ //! Offset of the collider relative to rigidbody position
+ Vector2 offset;
};
} // namespace crepe