In this chapter, we will cover the following topics:
- Player control of a 2D GameObject (and limiting the movement within a rectangle)
- Player control of a 3D GameObject (and limiting the movement within a rectangle)
- Choosing destinations – finding a random spawn point
- Choosing destinations – finding the nearest spawn point
- Choosing destinations – respawning to the most recently passed checkpoint
- Moving objects by clicking on them
- Firing projectiles in the direction of movement