Loading…
Loading…
A game engine moves a character with a velocity vector. To rotate the character to face that way, the engine doesn't care how fast it's going — only the direction. So it divides the vector by its own length, producing a 'unit vector' of length 1 that points exactly where the original did. This single trick — normalizing — is run millions of times a second in graphics, physics, and navigation.