docs.unity.cn
    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
    Back to top Copyright © 2022 Unity Technologies
    Generated by DocFX
    on Tuesday, April 26, 2022
    Terms of use