From the course: Cert Prep: Unity Certified Associate Game Developer UI and 2D Games

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Sprites and 2D physics

Sprites and 2D physics - Unity Tutorial

From the course: Cert Prep: Unity Certified Associate Game Developer UI and 2D Games

Start my 1-month free trial

Sprites and 2D physics

- [Instructor] In the previous movie, we set up our scene and we got our character moving, and that's looking good. But this scene lacks an important element. It doesn't feel like a coherent world because it lacks a physic system. We don't have objects moving under the effects of gravity, for example, or objects that are able to collide with one another. In this movie, I want to take a look at how we can set up 2D physics for our Sprite objects. To start that, I'm going to go back to the scene tab here and select the player character. As it stands, the player character is standing on the spot here above the floor or what could be the floor. And they're not being pulled to the ground under the effects of gravity. I want to create that effect and here's how we can set that up, by selecting the player, I'm going to choose component physics 2D and make sure you choose physics 2D because the physics system here is for…

Contents