Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


PhysicsMaterial

Physics material describes how to handle colliding objects (friction, bounciness).
Read time 4 minutesLast updated 4 days ago

Definition

  • Type: Class
  • Namespace: UnityEngine
  • Assembly: UnityEngine.PhysicsModule
  • Inherits from: Object
public class PhysicsMaterial : Object

Remarks

Additional Resources: Collider

Constructors

Constructor

Description

PhysicsMaterial()Creates a new material.
PhysicsMaterial(System.String)Creates a new material named
name
.

Properties

Property

Description

bounceCombineDetermines how the bounciness is combined.
bouncinessHow bouncy is the surface? A value of 0 will not bounce. A value of 1 will bounce without any loss of energy.
dynamicFrictionThe friction used when already moving. This value is usually between 0 and 1.
frictionCombineDetermines how the friction is combined.
staticFrictionThe friction coefficient used when an object is lying on a surface.

Inheritance

Inherited Members

Operators

Operator

Description

operator ==Compares two object references to see if they refer to the same object.
boolDetermines whether the object exists.
operator !=Compares if two objects refer to a different object.