Class PhysicsMaterialTemplate | Package Manager UI website
docs.unity3d.com
    Show / Hide Table of Contents

    Class PhysicsMaterialTemplate

    Inheritance
    System.Object
    PhysicsMaterialTemplate
    Namespace: Unity.Physics.Authoring
    Syntax
    public class PhysicsMaterialTemplate : ScriptableObject, IPhysicsMaterialProperties

    Properties

    BelongsTo

    Declaration
    public int BelongsTo { get; set; }
    Property Value
    Type Description
    System.Int32

    CollidesWith

    Declaration
    public int CollidesWith { get; set; }
    Property Value
    Type Description
    System.Int32

    CustomFlags

    Declaration
    public byte CustomFlags { get; set; }
    Property Value
    Type Description
    System.Byte

    Friction

    Declaration
    public PhysicsMaterialCoefficient Friction { get; set; }
    Property Value
    Type Description
    PhysicsMaterialCoefficient

    IsTrigger

    Declaration
    public bool IsTrigger { get; set; }
    Property Value
    Type Description
    System.Boolean

    RaisesCollisionEvents

    Declaration
    public bool RaisesCollisionEvents { get; set; }
    Property Value
    Type Description
    System.Boolean

    Restitution

    Declaration
    public PhysicsMaterialCoefficient Restitution { get; set; }
    Property Value
    Type Description
    PhysicsMaterialCoefficient

    Methods

    GetBelongsTo(Int32)

    Declaration
    public bool GetBelongsTo(int categoryIndex)
    Parameters
    Type Name Description
    System.Int32 categoryIndex
    Returns
    Type Description
    System.Boolean

    GetCollidesWith(Int32)

    Declaration
    public bool GetCollidesWith(int categoryIndex)
    Parameters
    Type Name Description
    System.Int32 categoryIndex
    Returns
    Type Description
    System.Boolean

    GetCustomFlag(Int32)

    Declaration
    public bool GetCustomFlag(int customFlagIndex)
    Parameters
    Type Name Description
    System.Int32 customFlagIndex
    Returns
    Type Description
    System.Boolean

    SetBelongsTo(Int32, Boolean)

    Declaration
    public void SetBelongsTo(int categoryIndex, bool value)
    Parameters
    Type Name Description
    System.Int32 categoryIndex
    System.Boolean value

    SetCollidesWith(Int32, Boolean)

    Declaration
    public void SetCollidesWith(int categoryIndex, bool value)
    Parameters
    Type Name Description
    System.Int32 categoryIndex
    System.Boolean value

    SetCustomFlag(Int32, Boolean)

    Declaration
    public void SetCustomFlag(int customFlagIndex, bool value)
    Parameters
    Type Name Description
    System.Int32 customFlagIndex
    System.Boolean value
    Back to top
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023