Introduction
In the previous chapter, we came across some of the basic concepts of collision, namely Line Traces and Sweep Traces. We learned how to execute different types of Line Traces, how to create our own custom Trace Channels, and how to change how an object responds to a specific channel. Many of the things you learned in the previous chapter will be used in this chapter, where we'll learn about object collision.
Throughout this chapter, we will continue to build upon our top-down Dodgeball
game by adding game mechanics that revolve around object collision. We will create the Dodgeball actor, which will act as a dodgeball that bounces off of the floor and walls; a Wall actor, which will block all objects; a Ghost Wall actor, which will only block the player, not the enemies' lines of sight or the dodgeball; and a Victory Box actor, which will end the game when the player enters the Victory Box, representing the end of the level.
Before we start creating our...