docs.unity3d.com
    Show / Hide Table of Contents

    Struct ModifiableContactHeader

    A modifiable contact header.

    Inherited Members
    ValueType.Equals(Object)
    ValueType.GetHashCode()
    ValueType.ToString()
    Object.Equals(Object, Object)
    Object.ReferenceEquals(Object, Object)
    Object.GetType()
    Namespace: Unity.Physics
    Syntax
    public struct ModifiableContactHeader

    Properties

    BodyIndexA

    Gets the body index a.

    Declaration
    public readonly int BodyIndexA { get; }
    Property Value
    Type Description
    Int32

    The body index a.

    BodyIndexB

    Gets the body index b.

    Declaration
    public readonly int BodyIndexB { get; }
    Property Value
    Type Description
    Int32

    The body index b.

    CoefficientOfFriction

    Gets or sets the coefficient of friction.

    Declaration
    public float CoefficientOfFriction { get; set; }
    Property Value
    Type Description
    Single

    The coefficient of friction.

    CoefficientOfRestitution

    Gets or sets the coefficient of restitution.

    Declaration
    public float CoefficientOfRestitution { get; set; }
    Property Value
    Type Description
    Single

    The coefficient of restitution.

    ColliderKeyA

    Gets the collider key a.

    Declaration
    public readonly ColliderKey ColliderKeyA { get; }
    Property Value
    Type Description
    ColliderKey

    The collider key a.

    ColliderKeyB

    Gets the collider key b.

    Declaration
    public readonly ColliderKey ColliderKeyB { get; }
    Property Value
    Type Description
    ColliderKey

    The collider key b.

    CustomTagsA

    Gets the custom tags a.

    Declaration
    public readonly byte CustomTagsA { get; }
    Property Value
    Type Description
    Byte

    The custom tags a.

    CustomTagsB

    Gets the custom tags b.

    Declaration
    public readonly byte CustomTagsB { get; }
    Property Value
    Type Description
    Byte

    The custom tags b.

    EntityA

    Gets the entity a.

    Declaration
    public readonly Entity EntityA { get; }
    Property Value
    Type Description
    Entity

    The entity a.

    EntityB

    Gets the entity b.

    Declaration
    public readonly Entity EntityB { get; }
    Property Value
    Type Description
    Entity

    The entity b.

    JacobianFlags

    Gets or sets the jacobian flags.

    Declaration
    public JacobianFlags JacobianFlags { get; set; }
    Property Value
    Type Description
    JacobianFlags

    Options that control the jacobian.

    Modified

    Gets a value indicating whether this object is modified.

    Declaration
    public bool Modified { get; }
    Property Value
    Type Description
    Boolean

    True if modified, false if not.

    Normal

    Gets or sets the normal.

    Declaration
    public float3 Normal { get; set; }
    Property Value
    Type Description
    float3

    The normal.

    NumContacts

    Gets the number of contacts.

    Declaration
    public readonly int NumContacts { get; }
    Property Value
    Type Description
    Int32

    The total number of contacts.

    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