31 const auto group = registry.group<
components::RigidBody>(entt::get<components::Transform>, entt::exclude<flags::Disabled>);
32 for (
auto&& [entity, body, transform] : group.each())
34 const auto& pos = body.m_body->GetPosition();
35 transform.m_tf.set_pos(pos.x * GALAXY_BOX_TO_WORLD, pos.y * GALAXY_BOX_TO_WORLD);
36 transform.m_tf.set_rotation(glm::degrees(body.m_body->GetAngle()));