Tag Info

New answers tagged

0

Why does it have to be 1 specifically? It doesn't. It's just a standard. If you want so in your game, you can make all your vectors of length 2. I wouldn't call it normalized though because normalization has a mathematical definition of its own. As long as you have all your vectors in the game standard (all of them of unit length N, doesn't matter what N ...


2

Christian's answer already covers most of what you asked for expect your concrete example from the end of your question about representing "North-East": First of all, it depends on your coordinate system. But if we look onto your world from the top and assume that North/South is the y-axis (+y = North) and West/East is the x-axis (+x = East), you could ...


6

A 2D vector has two values (x and y), and it basically says how far you go from the point of origin in the x- and in the y-direction. For example, a vector of (3,4) goes 3 units in x direction and 4 units in the y direction, resulting in an angled line with a length of 5 (3² + 4² = 9+16 = 25, root of that is 5). So the vector basically gives you two pieces ...



Top 50 recent answers are included