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:
![](https://static.packt-cdn.com/products/9781839217616/graphics/assets/2bcd2f62-f2f0-42f4-939f-b041faacdc4c.png)
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.