Let’s Get Physical

In this chapter, you continue to work on the third and final game in the book—RETROformer. You will learn all about 2D physics in Unity, and how it can be applied to the platform game. Here, we will learn this by applying physics to actions such as jumping and moving through forces. In particular, we will implement a Movement Component (which will take care of controlling the Animation State Machine of the previous chapter, as well as moving the character using physics) along with a Player Controller (which will send input based on the keyboard to the Movement Component). Keep in mind that if it is difficult to understand now, it will be much easier by the end of the chapter.

Throughout this chapter, we will cover the following topics:

  • Physics Material 2D
  • Finishing to set up the Environment
  • Creating our Hero
  • Movement Component for moving, jumping, and controlling the State Machine
  • Player Controller for processing input based on the keyboard

With this said, let's begin.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset