aboutsummaryrefslogtreecommitdiff
path: root/src/crepe/system/CollisionSystem.h
diff options
context:
space:
mode:
authorJAROWMR <jarorutjes07@gmail.com>2024-11-14 22:39:08 +0100
committerJAROWMR <jarorutjes07@gmail.com>2024-11-14 22:39:08 +0100
commit355b0178eaaf3602b00975adb8f56e2141dcd982 (patch)
treeebc1962e0a863165f66899c95a9f194e273db2e6 /src/crepe/system/CollisionSystem.h
parentb58765b671969aa810b9a345be55423523e893fb (diff)
added function to call collision handlers
Diffstat (limited to 'src/crepe/system/CollisionSystem.h')
-rw-r--r--src/crepe/system/CollisionSystem.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/crepe/system/CollisionSystem.h b/src/crepe/system/CollisionSystem.h
index 4970579..9a72948 100644
--- a/src/crepe/system/CollisionSystem.h
+++ b/src/crepe/system/CollisionSystem.h
@@ -17,8 +17,10 @@ private:
using collider_stor = std::variant<BoxCollider, CircleCollider>;
private:
struct CollidedInfoStor {
- std::tuple<collider_stor,Transform,Rigidbody> collider_info;
-};
+ collider_stor collider; // Store either BoxCollider or CircleCollider
+ Transform transform; // Transform data
+ Rigidbody rigidbody; // Rigidbody data
+ };
public:
CollisionSystem();
void update();