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 |
|---|---|
| bounceCombine | Determines how the bounciness is combined. |
| bounciness | How bouncy is the surface? A value of 0 will not bounce. A value of 1 will bounce without any loss of energy. |
| dynamicFriction | The friction used when already moving. This value is usually between 0 and 1. |
| frictionCombine | Determines how the friction is combined. |
| staticFriction | The friction coefficient used when an object is lying on a surface. |
Inheritance
Operators
Operator | Description |
|---|---|
| operator == | Compares two object references to see if they refer to the same object. |
| bool | Determines whether the object exists. |
| operator != | Compares if two objects refer to a different object. |