Graphics Programs Reference
Figure 6-9. Heading towards the plane center
The motion of each Enemy object is along linear paths, and is directed towards
slope-intercept equation) will be zero. The value of the field _dy can be simply
obtained by multiplying the slope _slopeZ by _dx . The y-coordinate of enemy's
source position will be interpolated by _dy units. Add the interpolate method as
ing 6-21 .