docs.unity.cn
    Show / Hide Table of Contents

    Interface ISimulationEvent<T>

    An event raised when a pair of bodies interact during solving.

    Inherited Members
    IComparable<T>.CompareTo(T)
    Namespace: Unity.Physics
    Syntax
    public interface ISimulationEvent<T> : IComparable<T>
    Type Parameters
    Name Description
    T

    Generic type parameter.

    Properties

    BodyIndexA

    Gets the body index a.

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

    The body index a.

    BodyIndexB

    Gets the body index b.

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

    The body index b.

    ColliderKeyA

    Gets the collider key a.

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

    The collider key a.

    ColliderKeyB

    Gets the collider key b.

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

    The collider key b.

    EntityA

    Gets the entity a.

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

    The entity a.

    EntityB

    Gets the entity b.

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

    The entity b.

    Back to top Copyright © 2023 Unity Technologies — Terms of use
    Generated by DocFX
    on Wednesday, June 21, 2023