diff options
author | JAROWMR <jarorutjes07@gmail.com> | 2024-12-03 19:32:15 +0100 |
---|---|---|
committer | JAROWMR <jarorutjes07@gmail.com> | 2024-12-03 19:32:15 +0100 |
commit | ff618da3f97237796042fa3664da59ed147bc1da (patch) | |
tree | cfc283425f145b16a2b2e3b1a0a5760e8015a2b1 /src/crepe/api/BoxCollider.h | |
parent | fb018cd8511e9cae408f8ea7d2b73e66a452625b (diff) |
improved comments
Diffstat (limited to 'src/crepe/api/BoxCollider.h')
-rw-r--r-- | src/crepe/api/BoxCollider.h | 10 |
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 |