# Math's involved in Game Development (Help)

Hi

I am new to unity Game development nearly 2 years. i have difficulties in writing code when math’s involved. i am graduated my math is good. but when doing it in unity simple vector rotation and angles finding becomes so difficult for me. i want to be good in finding vectors and their angels and rotations, trigonometry, magnitude and all other things similar. But i cant find a proper way or guide which i have to follow.
if anyone have any ideas or courses (free I am a student) or any other way . Please share your suggestions and ideas. Highly appreciate your replies and feedback.

Thank You

Math for game devs by Freya.

2 Likes

The bread and butter of game mathematics are dot product and cross product. Learn those. Realize that dot product between unit length vector allows you to find an angle between them. You should also understand newton’s laws (F = ma), and know formula for uniformly accelerated movement (x = v0t + a *t ^2/2). You also need understanding of trigonometry. Meaning you should know what sin, cos, tan correspond to and what their properties are without looking into reference book.

Transformation matrices can be decomposed or thought of as set of vector (position + xyz axes). Quaternions are difficult to understand. But you can work with them without understanding them fully. There’s a good course on quaternions here:
https://eater.net/quaternions

3 Likes

You can follow Fabrizio Espindola (LinkedIn). He’s doing an amazing work solving your very same problem, although is not free yet, you can reach out and ask him for guidance or take a look at what he’s accomplished: Free sample with shaders, Visualizing math functions for game devs (this is going to help you for sure).

2 Likes

Also here’s an online visualize for them:

2 Likes

The link I gave has a much better visualizer.

Highly recommend

3D Math Primer for Graphics and Game Development. second edition

https://gamemath.com/

https://gamemath.com/book/

1 Like

Thank You all of you guys i’ll try my best to understand from all these links you provide. and then maybe i become best in game Math.
Thank you again

There isn’t a section specifically for Game Math but Khan Academy is a great free resource to learn math in general. I’ve been using it to tighten up my skills.

1 Like

All those resources are great.

If you want to spend some money eventually, this is my favorite math book for 3D programming

https://mathfor3dgameprogramming.com/

1 Like

I own a copy of that. It is good to have as much reference material as possible. I must have purchased over the years more than a hundred books relating to programing and Game dev for my bookshelf.

I also have a copy of Essential mathematics for games and interactive applications second ed. Of the three books I found 3D Math Primer for Graphics and Game Development the best. Because it is written better and covers the basics in more depth. Just don’t get the first ed which is like a totally different book.

2 Likes