Working with PhysicMaterial.
Objective: Working with PhysicMaterial.
To create Physic Material, go to the project folder, hit the plus button, or right click inside the Assets folder <PhysicMaterial.
Option In Physic Material
Dynamic Friction allows you to set the object how smoothly it can move.
A value of 0 feels like ice, and 1 feels like rubber.
Static Friction, this allows to set a friction when object is static and determines how smoothly it will move if a moving object pushes it or bump into it.
The value of it must me Must be greater than or equal to zero, this means 0, it will act like static, like slippery ice
Bounciness: This option allows you to set how bouncy the object is.
Note: A value of 0 will not bounce. A value of 1 will bounce without any loss of energy.
Unity says, its How bouncy is the surface? but you can set anything to be bouncy, even a cow lol.
Friction Combine
Friction Combine has 4 options: average minimum, maximum, multiply
Friction Combine-Average: This will take the dynamic friction of two objects that have material and find the average value, and use it as its value. And it will do this for static friction
Friction Combine-minimum: This will look at which one has low static friction between the two and set it as the static friction value, and will do this for dynamic.
Friction Combine-multiply: This will multiply the value of static friction of two objects and use it as its value, and will do the same for dynamic friction.
Friction Combine-maximum: This will look maximum value between of two static friction and use the highest value,and it will do the same for dynamic value.
Bounciness Combine:
For bounciness, it will do the same as the above explanation.
Setting my material for smooth metal and rough metal
To add this material, select Object< Inspector < Collider <Material.
Let's play and see how smoothly the object moves.
See you in the next one.