docs.unity3d.com
    Show / Hide Table of Contents

    Struct TriggerEvent

    Namespace: Unity.Physics
    Syntax
    public struct TriggerEvent : ISimulationEvent<TriggerEvent>, IComparable<TriggerEvent>

    Properties

    BodyIndexA

    Declaration
    public readonly int BodyIndexA { get; }
    Property Value
    Type Description
    Int32
    Implements
    ISimulationEvent<T>.BodyIndexA

    BodyIndexB

    Declaration
    public readonly int BodyIndexB { get; }
    Property Value
    Type Description
    Int32
    Implements
    ISimulationEvent<T>.BodyIndexB

    ColliderKeyA

    Declaration
    public readonly ColliderKey ColliderKeyA { get; }
    Property Value
    Type Description
    ColliderKey
    Implements
    ISimulationEvent<T>.ColliderKeyA

    ColliderKeyB

    Declaration
    public readonly ColliderKey ColliderKeyB { get; }
    Property Value
    Type Description
    ColliderKey
    Implements
    ISimulationEvent<T>.ColliderKeyB

    EntityA

    Declaration
    public readonly Entity EntityA { get; }
    Property Value
    Type Description
    Entity
    Implements
    ISimulationEvent<T>.EntityA

    EntityB

    Declaration
    public readonly Entity EntityB { get; }
    Property Value
    Type Description
    Entity
    Implements
    ISimulationEvent<T>.EntityB

    Methods

    CompareTo(TriggerEvent)

    Declaration
    public int CompareTo(TriggerEvent other)
    Parameters
    Type Name Description
    TriggerEvent other
    Returns
    Type Description
    Int32
    In This Article
    • Properties
      • BodyIndexA
      • BodyIndexB
      • ColliderKeyA
      • ColliderKeyB
      • EntityA
      • EntityB
    • Methods
      • CompareTo(TriggerEvent)
    Back to top
    Terms of use
    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