From 038133fc232182e6991f3b4525390d84a4226a41 Mon Sep 17 00:00:00 2001 From: tenshi Date: Sat, 4 Nov 2023 22:36:54 +0100 Subject: [PATCH] BLUGA: Fix physic compile --- .../include/B-luga-physics/ECSCustomTypes.hpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/libs/B-luga-physics/include/B-luga-physics/ECSCustomTypes.hpp b/libs/B-luga-physics/include/B-luga-physics/ECSCustomTypes.hpp index f11cf2c..7ea4689 100644 --- a/libs/B-luga-physics/include/B-luga-physics/ECSCustomTypes.hpp +++ b/libs/B-luga-physics/include/B-luga-physics/ECSCustomTypes.hpp @@ -152,6 +152,12 @@ namespace Types { { _physicsMap.clear(); } + template + T &getPhysicData(physicsType_e type) + { + return std::any_cast(_physicsMap[type]); + } + private: void initBounce(nlohmann::json & /*unused*/, const Types::Position &originPos) {