diff --git a/Nuake/src/Core/Physics/DynamicWorld.cpp b/Nuake/src/Core/Physics/DynamicWorld.cpp index 1d674c8a..d35b670f 100644 --- a/Nuake/src/Core/Physics/DynamicWorld.cpp +++ b/Nuake/src/Core/Physics/DynamicWorld.cpp @@ -187,12 +187,12 @@ namespace Nuake public: virtual void OnBodyActivated(const JPH::BodyID& inBodyID, JPH::uint64 inBodyUserData) override { - std::cout << "A body got activated" << std::endl; + //std::cout << "A body got activated" << std::endl; } virtual void OnBodyDeactivated(const JPH::BodyID& inBodyID, JPH::uint64 inBodyUserData) override { - std::cout << "A body went to sleep" << std::endl; + //std::cout << "A body went to sleep" << std::endl; } }; diff --git a/Nuake/src/Resource/Prefab.h b/Nuake/src/Resource/Prefab.h index 593e3282..1d476a3b 100644 --- a/Nuake/src/Resource/Prefab.h +++ b/Nuake/src/Resource/Prefab.h @@ -76,6 +76,7 @@ namespace Nuake { this->AddEntity(entity); } + // Set reference to the parent entity to children for (auto& e : Entities) { auto parentC = e.GetComponent();