Version: Unity 6.7 Alpha (6000.7)
Language : English
Constant Force 2D reference
2D physics with the Physics Core 2D API

Physics Material 2D reference

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
Friction Sets the coefficient of friction for this collider. The range is between 0 and 1. A value of 0 means no friction, like ice. A value of 1 means very high friction, like rubber.
Bounciness Sets 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 Combine Defines 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 Combine Defines 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.

PhysicsMaterial2D

Constant Force 2D reference
2D physics with the Physics Core 2D API