docs.unity3d.com
    Show / Hide Table of Contents

    Struct TriggerEvent

    An event raised when a pair of bodies involving a trigger material have overlapped during solving.

    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 TriggerEvent : ISimulationEvent<TriggerEvent>, IComparable<TriggerEvent>

    Properties

    BodyIndexA

    Gets the body index a.

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

    The body index a.

    Implements
    ISimulationEvent<T>.BodyIndexA

    BodyIndexB

    Gets the body index b.

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

    The body index b.

    Implements
    ISimulationEvent<T>.BodyIndexB

    ColliderKeyA

    Gets the collider key a.

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

    The collider key a.

    Implements
    ISimulationEvent<T>.ColliderKeyA

    ColliderKeyB

    Gets the collider key b.

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

    The collider key b.

    Implements
    ISimulationEvent<T>.ColliderKeyB

    EntityA

    Gets the entity a.

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

    The entity a.

    Implements
    ISimulationEvent<T>.EntityA

    EntityB

    Gets the entity b.

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

    The entity b.

    Implements
    ISimulationEvent<T>.EntityB

    Methods

    CompareTo(TriggerEvent)

    Compares this TriggerEvent object to another to determine their relative ordering.

    Declaration
    public int CompareTo(TriggerEvent other)
    Parameters
    Type Name Description
    TriggerEvent other

    Another instance to compare.

    Returns
    Type Description
    Int32

    Negative if this object is less than the other, 0 if they are equal, or positive if this is greater.

    Implements
    IComparable<T>.CompareTo(T)
    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