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 |
---|---|
Custom |
The custom tags set by the user. |
Default | (Immutable) A default material. |
Friction | The friction. |
Friction |
The friction combine policy. |
Restitution | The restitution. |
Restitution |
The restitution combine policy. |
Properties
Name | Description |
---|---|
Collision |
Gets or sets the collision response. |
Enable |
Get or Set EnableMassFactors |
Enable |
Get or Set EnableSurfaceVelocity. |
Methods
Name | Description |
---|---|
Equals(Material) | Tests if this Material is considered equal to another. |
Get |
Get a combined friction value for a pair of materials. The combine policy with the highest value takes priority. |
Get |
Get a combined restitution value for a pair of materials. The combine policy with the highest value takes priority. |
Get |
Calculates a hash code for this object. |