Game Development Reference
In-Depth Information
Certain vector operations discussed in subsequent sections require the vectors to
be normalized. However, when a vector is normalized, it will lose any magnitude
information. So you have to be careful not to normalize the wrong vectors. A good
rule of thumb to follow is if you only care about the direction of the vector (as
in the previous UI arrow example), you should normalize the vector. If you care
about both the direction and magnitude, the vector should be stored in its un-nor-
malized form.
Search WWH ::




Custom Search