Another common use of force is to apply a force to a newly instantiated object, making it a projectile traveling in the direction that the Player's GameObject is facing. That's what we'll create in this recipe. The result of this recipe should look as follows:
Figure 9.14 – Projectiles being fired by the player's object
In the preceding screenshot, on the left, we can see a player-controlled tank, while on the right, we can see three sphere projectiles that have been fired from the player's character.