Skip to content

Commit

Permalink
BLUGA: Fix physic compile
Browse files Browse the repository at this point in the history
  • Loading branch information
TTENSHII committed Nov 4, 2023
1 parent f2b2503 commit 038133f
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions libs/B-luga-physics/include/B-luga-physics/ECSCustomTypes.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,12 @@ namespace Types {
{
_physicsMap.clear();
}
template <typename T>
T &getPhysicData(physicsType_e type)
{
return std::any_cast<T &>(_physicsMap[type]);
}

private:
void initBounce(nlohmann::json & /*unused*/, const Types::Position &originPos)
{
Expand Down

0 comments on commit 038133f

Please sign in to comment.