Navigation
API > API/Runtime > API/Runtime/Chaos > API/Runtime/Chaos/FCollisionContextAllocator
Description
Return a midphase for a particle pair. This wil create a new midphase if the particle pairs were not recently overlapping, or return an existing one if they were.
Nothing outside of thie allocator should hold a pointer to the midphase, or any constraints it creates for more than the duration of the tick. Except the IslandManager :|
| Name | GetMidPhase |
| Type | function |
| Header File | /Engine/Source/Runtime/Experimental/Chaos/Public/Chaos/Collision/CollisionConstraintAllocator.h |
| Include Path | #include "Chaos/Collision/CollisionConstraintAllocator.h" |
FParticlePairMidPhase * GetMidPhase
(
FGeometryParticleHandle * Particle0,
FGeometryParticleHandle * Particle1,
FGeometryParticleHandle * SearchParticlePerformanceHint,
const FCollisionContext & Context
)