#include "PhysicsSystem.h" #include "ComponentManager.h" #include "Rigidbody.h" #include "Transform.h" #include using namespace crepe; PhysicsSystem::PhysicsSystem() { } void PhysicsSystem::update() { ComponentManager& mgr = ComponentManager::get_instance(); std::vector> rigidbodies = mgr.get_components_by_type(); std::vector> transforms = mgr.get_components_by_type(); for (Rigidbody& rigidbody : rigidbodies) { std::cout << rigidbody.gameObjectId << std::endl; } }