Maths for video games, how can I learn?

Hello community :wave:

These months I have been very interested in getting into the world of mathematics, but I know absolutely nothing of the basics or what kind of mathematics is needed to apply them to the games (the necessary ones), and I do not find resources in what I can learn, and sadly in my country the teaching of these is very slow and very bad, and I want to learn on my own to be able to create better games and to be able to get into this beautiful world of mathematics.

Do you think you can help me with this?

It would help me a lot if you could share with me resources to start with mathematics and tell me what areas of mathematics are necessary for video game development and scripting, thank you very much!


Any help is greatly appreciated :slight_smile:

9 Likes

You can do the basics with just adding, subtraction, multiplying ,and dividing. Sin,Cos,and Tan are helpful for items on slopes. If you plan to have super mathy things, like zero gravity, or airplanes, you probably need to know advanced math formulas. But so far, in my 3 or so years of coding, the most advanced thing I have needed was Cos, and some basic rotations.

4 Likes

I want to learn all the areas needed for game development, and understand what each thing does, I don’t want to use functions that I don’t know what they do in the background or where they come from, thanks for commenting and trying to help but I just need resources and topics to be able to research about them and be able to study them, thanks anyway! :smiley:

2 Likes

watch this maybe you can learn something from these vids i recommend watching the playlist that this guy made about how to learn coding on roblox https://www.youtube.com/watch?v=4J8kNBBJT1E&list=PLfAg6nOoAuSm3IFHTbLfknrEDnRoSxCwW

4 Likes

I’ve been programming in luau for 4 years, I don’t need a playlist on that, what I need is math, thanks for commenting!

In school, what type of math course are you taking? Are you taking Algebra 1 or maybe 2 or maybe geometry.

Or you might be taking a lower level or higher level course

2 Likes

algebra 1 I think, but it’s very basic and we are progressing very slow, I want to learn on my own because I don’t want to wait 4 years to learn nothing in my school hahaha

the problem is that I literally forgot almost all of arithmetic and I don’t know which subjects to start with and then move on to more advanced ones, and I also don’t know which subjects to study

3 Likes

oh sorry i didnt really understand it

3 Likes

dont worry, thanks for commenting anyways!

2 Likes

Yikes. You should probably start relearning all the basic stuff like addition, subtraction, multiplication, division, and then fractions.

You’ll also need this for you Algebra 1 class most definitely. They probably won’t go over the basics so you should strive to get it memorized.

2 Likes

I know, but I also want to have the necessary areas for video games, so that when I learn everything I need I can move on to those areas

algebra is not hard for me, I understand quite well what is the clearance of variables and linear equations, but that’s all we’ve come to in half a year

Well it depends on what you want to accomplish. There’s different types of math used for different stuff.

I think what interests me the most is physics, geometry, trigonometry, algebra and other areas where I can interact with 3D environments in Roblox and apply forces, trajectories and all that (in short, everything that helps me to interact with 3D objects and be able to make a circle, for example, I don’t know if you understand what I mean)

1 Like

I don’t use physics much but I really just remember the basic laws of physics from my 8th grade science class

Well you don’t need to use the actual trig functions, but it definitely saves lots of lines of code (at least to my knowledge, but using common sense you could just take the sides of the triangle you need and make a custom function)

1 Like

I answered very late, but it may be the case, but I’ve always been very interested in these topics, but I don’t know where to start, that’s exactly why I made this post :sad:

1 Like

With your actual learning in school, you might have to be patient and wait until you finish your algebra 1 requirements sadly.

But, you can try learning the basic of trigonometry with this tutorial

And then you could try watching this video which I haven’t watched in a while so I’m not sure the guy in the video explains the math well.

2 Likes

I don’t think it will do me much good to start with trigonometry, but maybe to give me an introduction and see how it will help me, thanks!

1 Like

If you want to know advanced math formulas, then you will probably need to look them up on the internet.
F = Gm1m2/r2 is the formula for gravity. All you really need to know are the masses of the parts, their positions, the force and gravitational constraint. I’m sure you can figure out what the force value is, and the gravitational constraint by looking that up on the internet too. You don’t really need to know any of this stuff now, and probably won’t ever need to. However, if a feature is required for your game, you can easily just look it up on the internet.

I don’t like to use formulas without knowing what they do in the background, I want to understand where the letters come from and why just that formula, I don’t like to use things without knowing, but thanks for commenting anyway! :smile: