aboutsummaryrefslogtreecommitdiff
path: root/src/crepe/api/BoxCollider.h
diff options
context:
space:
mode:
authorheavydemon21 <nielsstunnebrink1@gmail.com>2024-12-17 14:17:25 +0100
committerheavydemon21 <nielsstunnebrink1@gmail.com>2024-12-17 14:17:25 +0100
commite70c2a3a4a7f636f190cc64792029cadd3613337 (patch)
tree8371b0e067430db780b72638eb61555869641979 /src/crepe/api/BoxCollider.h
parent68be6b67f79413cb4af0ca15262ca1547a7d0d41 (diff)
parent9957da232e7c96f7f88a7ab0edfa4aaf560d1c00 (diff)
Merge branch 'master' into niels/UI
Diffstat (limited to 'src/crepe/api/BoxCollider.h')
-rw-r--r--src/crepe/api/BoxCollider.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/crepe/api/BoxCollider.h b/src/crepe/api/BoxCollider.h
index 1ac4d46..d643e7f 100644
--- a/src/crepe/api/BoxCollider.h
+++ b/src/crepe/api/BoxCollider.h
@@ -13,7 +13,8 @@ namespace crepe {
*/
class BoxCollider : public Collider {
public:
- BoxCollider(game_object_id_t game_object_id, const vec2 & offset, const vec2 & dimensions);
+ BoxCollider(game_object_id_t game_object_id, const vec2 & dimensions,
+ const vec2 & offset = {0, 0});
//! Width and height of the box collider
vec2 dimensions;