![]() |
UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
|
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. More...
#include <ParticleCollisions.h>
Public Types | |
| using | FContainerType = TArray< TPair< uint64, FParticlePairMidPhase * > > |
Public Member Functions | |
| CHAOS_API | FParticleCollisions () |
| CHAOS_API | ~FParticleCollisions () |
| int32 | Num () const |
| void | Reset () |
| Clear the list of midphases. Only for use in shutdown. | |
| CHAOS_API void | AddMidPhase (FGeometryParticleHandle *InParticle, FParticlePairMidPhase *InMidPhase) |
| 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_API void | RemoveMidPhase (FGeometryParticleHandle *InParticle, FParticlePairMidPhase *InMidPhase) |
| Remove a mid phase. | |
| FParticlePairMidPhase * | GetMidPhase (const int32 InIndex) |
| Get a midphase by its index. | |
| FParticlePairMidPhase * | FindMidPhase (const uint64 InKey) |
| Find the mid phase with the matching key. | |
| template<typename TLambda > | |
| ECollisionVisitorResult | VisitMidPhases (const TLambda &Lambda) |
| Visit all of the midphases on the particle and call the specified function. | |
| template<typename TLambda > | |
| ECollisionVisitorResult | VisitConstMidPhases (const TLambda &Lambda) const |
| Visit all of the midphases on the particle and call the specified function. | |
| template<typename TLambda > | |
| ECollisionVisitorResult | VisitCollisions (const TLambda &Visitor, const ECollisionVisitorFlags VisitFlags=ECollisionVisitorFlags::VisitDefault) |
| Visit all the collisions on this particle. | |
| template<typename TLambda > | |
| ECollisionVisitorResult | VisitConstCollisions (const TLambda &Visitor, const ECollisionVisitorFlags VisitFlags=ECollisionVisitorFlags::VisitDefault) const |
| Visit all the collisions on this particle. | |
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.
| Chaos::FParticleCollisions::FParticleCollisions | ( | ) |
| Chaos::FParticleCollisions::~FParticleCollisions | ( | ) |
| void Chaos::FParticleCollisions::AddMidPhase | ( | FGeometryParticleHandle * | InParticle, |
| FParticlePairMidPhase * | InMidPhase | ||
| ) |
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...
|
inline |
Find the mid phase with the matching key.
| InKey | The internal key from a FCollisionParticlePairKey |
|
inline |
Get a midphase by its index.
|
inline |
| void Chaos::FParticleCollisions::RemoveMidPhase | ( | FGeometryParticleHandle * | InParticle, |
| FParticlePairMidPhase * | InMidPhase | ||
| ) |
Remove a mid phase.
|
inline |
Clear the list of midphases. Only for use in shutdown.
|
inline |
Visit all the collisions on this particle.
| TLambda | visitor type with signature void(FPBDCollisionConstraint&) |
|
inline |
Visit all the collisions on this particle.
| TLambda | visitor type with signature void(const FPBDCollisionConstraint&) |
|
inline |
Visit all of the midphases on the particle and call the specified function.
| TLambda | visitor type with signature void(const FParticlePairMidPhase&) |
|
inline |
Visit all of the midphases on the particle and call the specified function.
| TLambda | visitor type with signature ECollisionVisitorResult(FParticlePairMidPhase&) |