12/10/2020 Trigonometry
- 2574267
- Oct 13, 2020
- 1 min read
Updated: Jun 3, 2021
Trigonometry is used in making video games. Its used to calculate angles of a shape, mostly when designing characters, objects and levels/worlds. Angles are used a lot, for example if you have a 3D game then your character will most likely have a 360 degrees view so they can turn around fully.
Pythagoras
a² + b² = c²
3² + 2² = c²
9 + 4 = 13
√13 = 3.60
SohCahToa
Each side of a triangle is different. The longest side is called the Hypotenuse and it is the easiest to find since it is always the biggest side. The opposite is always facing opposite the angle that you have been told to look at. You can find the Adjacent from the fact its the last side but if you want to find it properly then the side is always next to the angle.

To calculate the Sine triangle you will have to do the Opposite | Hypotenuse
Cosine = Adjacent | Hypotenuse
Tangent = Opposite | Adjacent

Comments