#include "shared/pch.hh" #include "shared/entity/velocity.hh" #include "shared/entity/stasis.hh" #include "shared/entity/transform.hh" #include "shared/world/dimension.hh" #include "shared/globals.hh" void Velocity::fixed_update(Dimension* dimension) { auto group = dimension->entities.group(entt::get, entt::exclude); for(auto [entity, velocity, transform] : group.each()) { transform.local += velocity.value * globals::fixed_frametime; } }