Legacy Documentation: Version 5.0
Edge Collider 2D
Spring Joint 2D

Physics Material 2D

Suggest a change

Success!

Thank you for helping us improve the quality of Unity Documentation. Although we cannot accept all submissions, we do read each suggested change from our users and will make updates where applicable.

Close

Sumbission failed

For some reason your suggested change could not be submitted. Please try again in a few minutes. And thank you for taking the time to help us improve the quality of Unity Documentation.

Close

Cancel

Switch to Scripting

A Physics Material 2D is used to adjust the friction and bounce that occurs between 2D physics objects when they collide. You can create a Physics Material 2D from the Assets menu (Assets > Create > Physics2D Material ).

Properties

Property: Function:
Friction Coefficient of friction for this collider.
Bounciness The degree to which collisions rebound from the surface. A value of 0 indicates no bounce while a value of 1 indicates a perfect bounce with no loss of energy.

Details

To use a Physics Material 2D, simply drag it onto an object with a 2D collider attached or drag it to the collider component in the inspector. Note that for 3D physics, the equivalent asset is referred to as a Physic Material (ie, no S at the end of physic) - it is important in scripting not to get the two spellings confused.

Edge Collider 2D
Spring Joint 2D