Game Development Reference
In-Depth Information
FIGURE 11.19 Exponents less than 1 create a curve with a downward inflection.
The graph above shows the formula x .5
10 (which could also be referred to
as the square root of x times 10).
×
Again, by changing the exponent, we can dramatically or subtly affect the shape
of this curve. However, if we are trying to get the values to fit into a certain range
(such as how the curve in Figure 11.19 ranges from 0 to 100), we will need to
change the rest of the formula to accommodate the massive shifts that changing an
exponent will cause.
FIGURE 11.20 By using three different exponents, we have crafted three
different curves. We divided the formulas by different numbers so that the y
values remained between 0 and 100 over the range x = [0...100].
Search WWH ::




Custom Search