Struct TriggerEvent
An event raised when a pair of bodies involving a trigger material have overlapped during solving.
Inherited Members
Namespace: Unity.Physics
Assembly: Unity.Physics.dll
Syntax
public struct TriggerEvent : ISimulationEvent<TriggerEvent>, IComparable<TriggerEvent>
Properties
BodyIndexA
Gets the body index a.
Declaration
public int BodyIndexA { get; }
Property Value
Type | Description |
---|---|
int | The body index a. |
BodyIndexB
Gets the body index b.
Declaration
public int BodyIndexB { get; }
Property Value
Type | Description |
---|---|
int | The body index b. |
ColliderKeyA
Gets the collider key a.
Declaration
public ColliderKey ColliderKeyA { get; }
Property Value
Type | Description |
---|---|
ColliderKey | The collider key a. |
ColliderKeyB
Gets the collider key b.
Declaration
public ColliderKey ColliderKeyB { get; }
Property Value
Type | Description |
---|---|
ColliderKey | The collider key b. |
EntityA
Gets the entity a.
Declaration
public Entity EntityA { get; }
Property Value
Type | Description |
---|---|
Entity | The entity a. |
EntityB
Gets the entity b.
Declaration
public Entity EntityB { get; }
Property Value
Type | Description |
---|---|
Entity | The entity b. |
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 |
---|---|
int | Negative if this object is less than the other, 0 if they are equal, or positive if this is greater. |