Navigation
API > API/Runtime > API/Runtime/Chaos
Knows about all the collisions detectors associated with a particular particle. Used when particles are destroyed to remove perisstent collisions from the system, or when Islands are woken to restore the collisions.
| Name | FParticleCollisions |
| Type | class |
| Header File | /Engine/Source/Runtime/Experimental/Chaos/Public/Chaos/Collision/ParticleCollisions.h |
| Include Path | #include "Chaos/Collision/ParticleCollisions.h" |
Syntax
class FParticleCollisions
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
FParticleCollisions() |
Chaos/Collision/ParticleCollisions.h |
Destructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
~FParticleCollisions() |
Chaos/Collision/ParticleCollisions.h |
Typedefs
| Name | Type | Remarks | Include Path |
|---|---|---|---|
| FContainerType | TArray< TPair< uint64, FParticlePairMidPhase * > > | In a mostly stationary scene the choice of container doesn't matter much. | Chaos/Collision/ParticleCollisions.h |
Variables
Protected
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| MidPhases | FContainerType | Chaos/Collision/ParticleCollisions.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
void AddMidPhase
(
FGeometryParticleHandle* InParticle, |
Add a mid phase to the list We are passing the particle and midphase here rather than just the key because we store a cookie on the midphase that we want to retrieve, and it has one cookie per particle. This could probably be cleaned up a bit... | Chaos/Collision/ParticleCollisions.h | |
FParticlePairMidPhase * FindMidPhase
(
const uint64 InKey |
Find the mid phase with the matching key. | Chaos/Collision/ParticleCollisions.h | |
FParticlePairMidPhase * GetMidPhase
(
const int32 InIndex |
Get a midphase by its index. | Chaos/Collision/ParticleCollisions.h | |
int32 Num() |
Chaos/Collision/ParticleCollisions.h | ||
void RemoveMidPhase
(
FGeometryParticleHandle* InParticle, |
Remove a mid phase. | Chaos/Collision/ParticleCollisions.h | |
void Reset() |
Clear the list of midphases. Only for use in shutdown. | Chaos/Collision/ParticleCollisions.h | |
ECollisionVisitorResult VisitCollisions
(
const TLambda& Visitor, |
Visit all the collisions on this particle. | Chaos/Collision/ParticleCollisions.h | |
ECollisionVisitorResult VisitConstCollisions
(
const TLambda& Visitor, |
Visit all the collisions on this particle. | Chaos/Collision/ParticleCollisions.h | |
ECollisionVisitorResult VisitConstMidPhases
(
const TLambda& Lambda |
Visit all of the midphases on the particle and call the specified function. | Chaos/Collision/ParticleCollisions.h | |
ECollisionVisitorResult VisitMidPhases
(
const TLambda& Lambda |
Visit all of the midphases on the particle and call the specified function. | Chaos/Collision/ParticleCollisions.h |