Essential Maths For Beginner Gamedevs - Which Math is Useful?
Madbook Madbook
4.89K subscribers
103,923 views
6.5K

 Published On Jun 14, 2021

There's plenty of tutorials on learning maths for gamedev, but why and where is this maths actually useful? Here, I try to give examples of how and when different types of mathematics pop-up, and how they are actually used when making a game. I have added links throughout the video and below if you want to learn these topics in more detail, but hopefully this will make you aware of the different areas of maths used in gamedev!
----------
Tutorials and Learning Resources for each topic covered (I have tried to include one video, one blog and one interactive thing to account for different types of learners!):

Numbers
+, -, x and ÷ are used frequently! The good thing here is that even if you aren't the best at doing sums quickly, the computer is! As long as you recognise when you should be using each operation, you'll be fine (e.g. subtract some health when your player takes damage).

Brush up on BODMAS! It's important to know what order more complicated calculations will calculate in - while remembering that you can use brackets to specifically order the way a sum will resolve: https://www.skillsyouneed.com/num/bod...

Discrete Maths
An umbrella term for lots of maths. Wikipedia splits it into 17 sub-topics (which are all individually still very broad): https://en.wikipedia.org/wiki/Discret...
You will almost definitely do a discrete maths course at university, if you do CompSci or a related degree. You could learn about any of these sub-topics for years.

Logic
Video tutorial on boolean logic (its for GMS2, but the logic and concepts apply universally):    • Boolean Logic [GameMaker Studio 2]  

Coordinate Systems
Most 2D games use an x and y-axis - 3D games will use the z-axis too. Here's what I mean when some are inverted:   / 644881436982575104  
Video on non-Euclidean games:    • How do non-euclidean games work? | Bi...  
Blog on non-Euclidian games:   / non-euclidean-geometry-and-games  

Trigonometry
Tutorial on angles (also vectors and some other topics too):    • Essential Mathematics For Aspiring Ga...  
An interactive visualisation of trig: https://www.mathsisfun.com/algebra/tr...

Pythagoras Theorem
Video tutorial:    • Pythagorean Theorem | MathHelp.com  
Article/guide: https://www.mathsisfun.com/pythagoras...

Vectors
Video:    • Ultimate Guide to Vectors Math and th...  
Professor Dave's intro to vectors:    • Introduction to Vectors and Their Ope...  
Blog/guide: https://www.gamasutra.com/blogs/MarcB...

Vector Normalisation
Khan Academy blog with interactive example at the bottom: https://www.khanacademy.org/computing...
Video tutorial on normalisation:    • How to Normalize a Vector  

Dot Product
Dot product video tutorial:    • The meaning of the dot product | Line...  
Codeer’s Video:    • Climbing & Worldbuilding In My Weird ...  
Interactive dot product visualisation: https://maththebeautiful.com/dot-prod...

Cross Product (Advanced Topic)
Video explanation of the cross product by Professor Dave:    • The Vector Cross Product  
Article/guide on cross product from Maths is Fun: https://www.mathsisfun.com/algebra/ve...
Visualisation: https://www.mathsisfun.com/algebra/ve...

Quaternions (Advanced Topic)
Blog: https://developerblog.myo.com/quatern...
Video Tutorial:    • Humane Rigging 03 - 3D Bouncy Ball 05...  

Graph Theory
This is a broad topic. Wikipedia gives some good insight into the variety of uses: https://en.wikipedia.org/wiki/Graph_t...
Tutorial series on finite state machines by MATLAB:    • Understanding State Machines, Part 1:...  
Interactive Path Finding: https://qiao.github.io/PathFinding.js...

---------
Remember to Subscribe!

Follow me on twitter:   / madbookstudios  
Join the madbook discord:   / discord  
Check all my FREE games on itch: https://madbookstudios.itch.io/
---------
Timestamps
0:00 - Intro
0:30 - The Problem
1:15 - The Solution
1:52 - Calculus Not Needed for Making Games
2:19 - Numbers
3:38 - Discrete Maths
4:44 - Logic
6:40 - Coordinate Systems
8:09 - Trigonometry
10:17 - Pythagoras Theorem
10:58 - Vectors
12:51 - Vector Normalisation
14:31 - Dot Product
16:01 - Cross Product
16:51 - Quaternions
18:26 - Graph Theory
19:42 - Recap
----------
#math #gamedev #mathingames #indiedev #gamedevmath

show more

Share/Embed