Navigation
API > API/Runtime > API/Runtime/Chaos > API/Runtime/Chaos/FRigidClustering
Description
Manually add a set of particles to a cluster after the cluster has already been created. ChildToParentMap: A map that may contain a pointer to one of the child particles as a key, and a pointer to its old parent particle (prior to be being released for example). If a child particle exists in this map, its parent (or whatever is specified as the value) will be used to determine the correct proxy to add to the parent cluster.
| Name | AddParticlesToCluster |
| Type | function |
| Header File | /Engine/Source/Runtime/Experimental/Chaos/Public/Chaos/PBDRigidClustering.h |
| Include Path | #include "Chaos/PBDRigidClustering.h" |
| Source | /Engine/Source/Runtime/Experimental/Chaos/Private/Chaos/PBDRigidClustering.cpp |
void AddParticlesToCluster
(
FPBDRigidClusteredParticleHandle * Cluster,
const TArray < FPBDRigidParticleHandle * > & InChildren,
const TMap < FPBDRigidParticleHandle *, FPBDRigidParticleHandle * > & ChildToParentMap
)