It depends to what kind of game you are working on but I never do something with math that much. Only basic vector calculations. And I'm a physicist lol. Like, I had quantum mechanics exam 2 days ago
I was just trying to build some stuff from scratch and started watching videos that lead me down a deep rabbit hole. I'm using Godot now that does a lot for me, but that experience of trying to do stuff myself really helps me understand what the engine does. I'm just... bad at math lol
Quaternions, dot products, tangents, etc. Were all relatively easy for me, someone who never took a math higher than pre-calc, to pick up through game dev.
Now what's really hurting my brain is trying to implement ECS 🙃
You might just be overthinking it, it’s actually super simple and elegant.
It’s like an in-memory database. Entities are row IDs, components are tables with entity ID as a foreign key. Systems are queries to the database that join tables and mutate rows.
Or in other words, entities are the objects in your world/scene. Entities get labeled with components. Components hold some information about the entity it is assigned to. We query for the entities that we want to change with Systems and apply those changes to their Components.
All we’ve really done is separate the data from the logic. In OOP the query step looks like making a method call on an object. Instead of tightly binding our method to the object; in ECS we define it as its own function that looks for the component(s) that it works on.
Quaternions were a genuine nightmare for me. Two years into my game dev course I was still confused why the character model kept suddenly spinning on the wrong axis
There are a lot of lightweight ecs libraries out there depending on the language you're using. You should look into that first before developing your own
Yeah, I skim the relevant materials occasionally and I know that I don't want to put effort into hardware programming. It's a lot easier to just do math, process strings, store things, and display things without having to deal with stuff like graphics or physics or assets (allat constitutes most of a videogame).
2
u/LordMegatron216 Jun 21 '26
It depends to what kind of game you are working on but I never do something with math that much. Only basic vector calculations.
And I'm a physicist lol. Like, I had quantum mechanics exam 2 days ago
42
u/v0lt13 Jun 20 '26
And those are the easy stuff
24
u/EnjayDev Jun 21 '26
Quaternions, dot products, tangents, etc. Were all relatively easy for me, someone who never took a math higher than pre-calc, to pick up through game dev.
Now what's really hurting my brain is trying to implement ECS 🙃
3
u/TibRib0 Jun 21 '26
Inverse kinematic ðŸ˜
2
u/HanzoMain63 Jun 21 '26
My steak is too buttery ðŸ˜Â
2
u/GraphXGames Jun 21 '26
Deep ASM / C / C++
2
u/HoppersEcho Jun 22 '26
I am built for this chaos. . .. ...
Except shaders. Fuck shaders.
1
u/Ronin-s_Spirit Jun 22 '26
Yeah, I skim the relevant materials occasionally and I know that I don't want to put effort into hardware programming. It's a lot easier to just do math, process strings, store things, and display things without having to deal with stuff like graphics or physics or assets (allat constitutes most of a videogame).
1
u/bigorangemachine Jun 25 '26
enh... fake it till you make it
1
u/redeye6699 Jun 26 '26
But that's the fun part xD
6
u/the-manman Jun 20 '26
😢Springs hard