← sources

Senior Developers : Is having a "God-Class" or "God-Function" inherently a bad thing?

source: reddit (reddit:gamedev)published 2026-09-17 15:13ingested 2026-09-18 02:38

retained text

So I'm making a game in Unreal Engine 5, mainly C++, with custom physics. The thing is I need the DeltaTime to apply physics correctly and currently a single function "Move(float DeltaTime)" takes it from the Tick. The thing is I just made a dash which applies a force in a direction, but this Dash is called by input, and does not have the DeltaTime in its parameters. Is making a boolean active and applying the Dash in the move function (which implies I'll do that for everything else that has to do with physics as well) a bad thing? Should I compartmentalize my code?

Thanks for reading

document fetched 2026-09-18 00:26 · canonical https://reddit.com/r/gamedev/comments/1wiwrjs/senior_developers_is_having_a_godclass_or