From cead795b7ff7135e13caf9ad3b76628070391458 Mon Sep 17 00:00:00 2001 From: jaroWMR Date: Sun, 20 Oct 2024 16:58:13 +0200 Subject: added collision system and circlecollider --- src/crepe/CircleCollider.h | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 src/crepe/CircleCollider.h (limited to 'src/crepe/CircleCollider.h') diff --git a/src/crepe/CircleCollider.h b/src/crepe/CircleCollider.h new file mode 100644 index 0000000..922477b --- /dev/null +++ b/src/crepe/CircleCollider.h @@ -0,0 +1,12 @@ +#pragma once +#include "Collider.h" + +namespace crepe { + +class CircleCollider : public Collider { +public: + CircleCollider(uint32_t gameObjectId,int radius) : Collider(gameObjectId), radius(radius) {} + int radius; +}; + +} // namespace crepe -- cgit v1.2.3