For a beginner, geometry in 3D space may seem a bit daunting. 2D on paper was hard enough, but now, geometry in 3D? Good news: use of trigonometry in graphics is rare and avoided for multitude of ...
Many people who want to make games wonder: how much math do I need to know? The answer might surprise them: really not that much and what you do need is a lot of fun. Mastering how to work with ...
Unit vectors that are perpendicular to a surface (so, they describe the orientation of the surface) are called unit normal vectors. Though, usually they are just abbreviated as normals. Normals appear ...
For position p and target a, displacement v=a−p contains both direction and length. Distance is ||v|| and unit direction is u=v/||v|| for nonzero v. Moving with speed s over timestep dt gives ...