Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


Physics Material 2D reference

Explore the properties that control the friction and bounce between colliding 2D physics objects.
Read time 1 minuteLast updated 12 days ago

Use a Physics Material 2D to adjust the friction and bounce that occur between 2D physics objects when they collide.
For more information on game physics, refer to 3D Physics.

Use a Physics Material 2D

To create a Physics Material 2D, go to Assets > Create > 2D > Physics Material 2D.
To use your Physics Material 2D, assign it to the Material property of a Collider 2D or Rigidbody 2D component.
Note
The equivalent asset in 3D physics is referred to as a
Physics Material

?

.

Properties

A Physics Material 2D contains the following properties.

Property

Description

FrictionSets the coefficient of friction for this collider.
BouncinessSets 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.
Friction CombineDefines how to combine both material friction values when two colliders interact. The options are:
  • Average: Uses the average of the two values.
  • Mean (Default): Uses the mean of the two values.
  • Multiply: Multiplies the two values together.
  • Minimum: Uses the smaller value.
  • Maximum: Uses the larger value.
Bounce CombineDefines how to combine both material bounciness values when two colliders interact. The options are:
  • Average: Uses the average of the two values.
  • Mean: Uses the mean of the two values.
  • Multiply: Multiplies the two values together.
  • Minimum: Uses the smaller value.
  • Maximum (Default): Uses the larger value.