{!See https://docs.google.com/document/d/1takg_GmIBBKKTj-GHZCwzxohpQz7Bhekivkk72kYMtE/edit for reference implementation of OneTrust, dataLayer and GTM} {!OneTrust Cookies Consent} {!OneTrust Cookies Consent end} {!dataLayer initialization push} {!dataLayer initialization push end} {!Google Tag Manager} {!Google Tag Manager end} Struct Material | Unity Physics | 1.1.0-pre.3
docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Struct Material

    Describes how an object should respond to collisions with other objects.

    Implements
    IEquatable<Material>
    Inherited Members
    ValueType.Equals(object)
    ValueType.ToString()
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetType()
    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.

    In This Article
    Back to top
    Copyright © 2023 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)