At last, it’s time to implement our final three tower types: Cannon Towers, for which we’ll need to implement a projectile that arcs; Hot Plates, which will be surprisingly easy; and Barricades, which will be even easier yet.
Arcing Projectiles
Our Cannon Tower projectile is intended to curve downward as it travels toward its mark. It’s far from a grand flourish, but it will give a little extra sense of weight to our so-called cannonballs.
The projectile will use its “speed” value to determine how fast it travels toward its target on the X and Z axes – outward from the tower. ...