aboutsummaryrefslogtreecommitdiff
path: root/src/crepe/api/BoxCollider.h
diff options
context:
space:
mode:
authorJAROWMR <jarorutjes07@gmail.com>2024-12-03 19:32:15 +0100
committerJAROWMR <jarorutjes07@gmail.com>2024-12-03 19:32:15 +0100
commitff618da3f97237796042fa3664da59ed147bc1da (patch)
treecfc283425f145b16a2b2e3b1a0a5760e8015a2b1 /src/crepe/api/BoxCollider.h
parentfb018cd8511e9cae408f8ea7d2b73e66a452625b (diff)
improved comments
Diffstat (limited to 'src/crepe/api/BoxCollider.h')
-rw-r--r--src/crepe/api/BoxCollider.h10
1 files changed, 4 insertions, 6 deletions
diff --git a/src/crepe/api/BoxCollider.h b/src/crepe/api/BoxCollider.h
index c83d54a..1f5f1c1 100644
--- a/src/crepe/api/BoxCollider.h
+++ b/src/crepe/api/BoxCollider.h
@@ -2,6 +2,7 @@
#include "Vector2.h"
#include "../Collider.h"
+#include "types.h"
namespace crepe {
@@ -12,13 +13,10 @@ namespace crepe {
*/
class BoxCollider : public Collider {
public:
- BoxCollider(game_object_id_t game_object_id,const vec2& offset, float width, float height);
+ BoxCollider(game_object_id_t game_object_id,const vec2& offset, const vec2& dimensions);
- //! Width of box collider
- float width;
-
- //! Height of box collider
- float height;
+ //! Width and height of the box collider
+ vec2 dimensions;
};
} // namespace crepe