Skip to content

Commit 038133f

Browse files
committed
BLUGA: Fix physic compile
1 parent f2b2503 commit 038133f

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

libs/B-luga-physics/include/B-luga-physics/ECSCustomTypes.hpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -152,6 +152,12 @@ namespace Types {
152152
{
153153
_physicsMap.clear();
154154
}
155+
template <typename T>
156+
T &getPhysicData(physicsType_e type)
157+
{
158+
return std::any_cast<T &>(_physicsMap[type]);
159+
}
160+
155161
private:
156162
void initBounce(nlohmann::json & /*unused*/, const Types::Position &originPos)
157163
{

0 commit comments

Comments
 (0)