1
00:00:00,000 --> 00:00:02,000
Hello, boys and girls this year are going to be very short.

2
00:00:02,000 --> 00:00:06,000
We're going to talk about physics material that we're going to use for two D objects.

3
00:00:06,000 --> 00:00:12,000
So at the moment, if you take a platform and make it as a wall, let's say something like that.

4
00:00:12,000 --> 00:00:18,000
And if you face this platform on the level, you will not slide down this wall.

5
00:00:18,000 --> 00:00:18,000
Right.

6
00:00:19,000 --> 00:00:21,000
Let me find it for a second.

7
00:00:24,000 --> 00:00:28,000
If I jump, you can see I am stuck.

8
00:00:28,000 --> 00:00:31,000
And to fix that, we just need to create a material.

9
00:00:31,000 --> 00:00:31,000
How we can do that.

10
00:00:31,000 --> 00:00:36,000
Let's go to the asset folder and create folder named material.

11
00:00:36,000 --> 00:00:40,000
I'm not sure we're going to have lots of them, but let's have a folder for that.

12
00:00:40,000 --> 00:00:48,000
I'm going to hit play, create two 2D physics material, and I'm going to call it something like Zero

13
00:00:48,000 --> 00:00:49,000
Friction.

14
00:00:49,000 --> 00:00:50,000
All right.

15
00:00:51,000 --> 00:00:53,000
Here we have friction and balance this.

16
00:00:53,000 --> 00:00:57,000
So basically, if you need friction on the object, you can increase it.

17
00:00:57,000 --> 00:00:59,000
If you don't need it, you can lower it.

18
00:00:59,000 --> 00:01:01,000
And we need the zero.

19
00:01:01,000 --> 00:01:05,000
If you want to make it bounce, make it bounce, but we don't need it to be bounced.

20
00:01:05,000 --> 00:01:10,000
But if you make something that's supposed to bounce like a basketball, you can use this material with

21
00:01:10,000 --> 00:01:11,000
the bounce in this.

22
00:01:11,000 --> 00:01:16,000
Now let's take the player, find the capsule collider, and just drag it over here.

23
00:01:16,000 --> 00:01:20,000
If we go to play mode, you can see a player is sleepy and he's not sticking to the walls.

