Summary
Every game has physics, in some way or another, for movement, collision detection, or both. In this chapter, we learned how to use the physics system for both being aware of proper settings to make the system work properly, reacting to collisions to generate gameplay systems, and moving the player in such a way that it collides with obstacles, keeping its physically inaccurate movement. We used these concepts to create our player and bullet movement and make our bullets damage the enemies, but we can reuse this knowledge to create a myriad of other possible gameplay requirements, so I suggest you play around a little bit with the physics concepts seen here; you can discover a lot of interesting use cases.
In the next chapter, we will discuss how to program the visual aspects of the game, such as effects, and make the UI react to the input.
Learn more on Discord
Read this book alongside other users, Unity game development experts, and the author himself. Ask questions...