Game Development Reference
In-Depth Information
nitude of the vector represents the speed of the vehicle, and the direction represents the
heading of the vehicle.
That's quite a lot of information from just two numbers (x, y). Vectors aren't restricted to
two dimensions either. They can be any size at all. You would use a three-dimensional
vector, (x, y, z), for example, to represent the velocity of a vehicle that moves in three di-
mensions, like a helicopter. Let's take a look at some of the things you can do with vec-
tors.
Search WWH ::




Custom Search