Navigation
API > API/Runtime > API/Runtime/Chaos
An index into a FCollisionEventData array of FCollidingDataobjects obtained from the PhysicsProxyToIndicesMap for a specific proxy. Indices held in FCollisionEventData::PhysicsProxyToCollisionIndices are encoded to include the proxy index in the collision data structure (0 or 1). This is useful if you collect a set of collision indices for a set of proxies, and the store a flat list of FCollidingDataIndexes. In this case it may be expensive to determine which of the proxies in the collision belongs to one of our proxies.
| Name | FCollidingDataIndex |
| Type | class |
| Header File | /Engine/Source/Runtime/Experimental/Chaos/Public/EventsData.h |
| Include Path | #include "EventsData.h" |
Syntax
class FCollidingDataIndex
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
| EventsData.h | |||
FCollidingDataIndex
(
int32 InCollisionIndex, |
InProxyIndex: The index of the proxy in the FCollidingData (0 or 1) InCollisionIndex: The index of the FCollidingData in the FCollisionEventData array | EventsData.h |
Variables
Protected
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| CollisionIndex | int32 | EventsData.h | ||
| ProxyIndex | uint32 | EventsData.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
int32 GetIndex() |
The index into the FCollidingData array. | EventsData.h | |
int32 GetProxyIndex() |
The index of our body in the collision data. This will be zero or one. | EventsData.h | |
bool IsValid() |
Is this index a valid index into the FCollidingData array? | EventsData.h | |
void Reset() |
Reset to invalid state. | EventsData.h |