Game Math

1 min. read

Game Mathematics

Pythagoras Theorem

Direction = Destination - Source

Center point of 2 points

A—————-Q———————–B
Qx = (Ax + Bx)*0.5
Qx = (Ay + By)*0.5

Q = (A + B)*0.5
B = 2Q - A
A = 2Q - B

Weighted Average of 2 points
A——————————Q———B
Q = (1-t)A + tB

Parabolic

B————R———–C
/ /
/ P
/ /
Q
/
/
A

AQ/AB = QP/QR
Q = (1-T)(A) + t(B)
R = (1-T)(B) + t(C)
P = (1-T)(Q) + t(R)

Lerp

Lerp = ((1-t)a+(tb))

References

https://www.khanacademy.org/partner-content/pixar/environment-modeling-2
https://nrich.maths.org/1374

Courses

[Game Development Foundations: Game-Related Math]
(https://www.linkedin.com/learning/game-development-foundations-game-related-math)

Math For Video Games: The Fastest Way To Get Smarter At Math

YouTube

How to Calculate Direction in Unity - A Unity Math Tutorial