Added error handling in wren. Game while abort lauching and print error in logger

This commit is contained in:
Antoine Pilote
2021-07-03 18:31:32 -04:00
parent f5bcb12f61
commit b384154eb4
14 changed files with 50 additions and 22 deletions

View File

@@ -16,7 +16,7 @@ PhysicsSystem::PhysicsSystem(Scene* scene)
m_Scene = scene;
}
void PhysicsSystem::Init()
bool PhysicsSystem::Init()
{
// Create physic world.
auto view = m_Scene->m_Registry.view<TransformComponent, RigidBodyComponent>();
@@ -83,6 +83,7 @@ void PhysicsSystem::Init()
PhysicsManager::Get()->RegisterGhostBody(ghostBody);
}
return true;
}
void PhysicsSystem::Update(Timestep ts)