diff options
Diffstat (limited to 'src/crepe/api/Rigidbody.h')
-rw-r--r-- | src/crepe/api/Rigidbody.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/crepe/api/Rigidbody.h b/src/crepe/api/Rigidbody.h index 293b1a4..b0a24f7 100644 --- a/src/crepe/api/Rigidbody.h +++ b/src/crepe/api/Rigidbody.h @@ -1,11 +1,13 @@ #pragma once #include <cmath> +#include <set> #include "../Component.h" #include "types.h" + namespace crepe { /** @@ -138,7 +140,7 @@ public: * Each element in the vector represents a layer ID, and the GameObject will only detect * collisions with other GameObjects that belong to these layers. */ - std::vector<int> collision_layers; + std::set<int> collision_layers; }; public: |