Struct Material
Describes how an object should respond to collisions with other objects.
Implements
Inherited Members
Namespace: Unity.Physics
Assembly: solution.dll
Syntax
public struct Material : IEquatable<Material>
Fields
| Name | Description |
|---|---|
| CustomTags | The custom tags set by the user. |
| Default | (Immutable) A default material. |
| Friction | The friction. |
| FrictionCombinePolicy | The friction combine policy. |
| Restitution | The restitution. |
| RestitutionCombinePolicy | The restitution combine policy. |
Properties
| Name | Description |
|---|---|
| CollisionResponse | Gets or sets the collision response. |
| EnableMassFactors | Get or Set EnableMassFactors |
| EnableSurfaceVelocity | Get or Set EnableSurfaceVelocity. |
Methods
| Name | Description |
|---|---|
| Equals(Material) | Tests if this Material is considered equal to another. |
| GetCombinedFriction(Material, Material) | Get a combined friction value for a pair of materials. The combine policy with the highest value takes priority. |
| GetCombinedRestitution(Material, Material) | Get a combined restitution value for a pair of materials. The combine policy with the highest value takes priority. |
| GetHashCode() | Calculates a hash code for this object. |