Silenced jolt callbacks debug prints + comments

This commit is contained in:
Antoine Pilote
2023-07-17 01:58:44 -04:00
parent 0548f7762c
commit 4150610b95
2 changed files with 3 additions and 2 deletions

View File

@@ -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;
}
};

View File

@@ -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<ParentComponent>();