aboutsummaryrefslogtreecommitdiff
path: root/src/crepe/api/CircleCollider.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/crepe/api/CircleCollider.h')
-rw-r--r--src/crepe/api/CircleCollider.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/crepe/api/CircleCollider.h b/src/crepe/api/CircleCollider.h
index 29a9c1e..4e04fa4 100644
--- a/src/crepe/api/CircleCollider.h
+++ b/src/crepe/api/CircleCollider.h
@@ -6,9 +6,17 @@
namespace crepe {
+/**
+ * \brief A class representing a circle-shaped collider.
+ *
+ * This class is used for collision detection with other colliders (e.g., BoxCollider).
+ */
class CircleCollider : public Collider {
public:
+
CircleCollider(game_object_id_t game_object_id,Vector2 offset, int radius);
+
+ //! Radius of the circle collider.
double radius;
};