Navigation
API > API/Runtime > API/Runtime/Chaos
Description
The goal of that function is to reorder a particle view per category in place without reallocation in O(N). The different categories should not overlap (example : kinematic vs dynamic vs static...)
| Name | Chaos::Private::ReorderParticleView |
| Type | function |
| Header File | /Engine/Source/Runtime/Experimental/Chaos/Public/Chaos/PBDRigidsSOAs.h |
| Include Path | #include "Chaos/PBDRigidsSOAs.h" |
namespace Chaos
{
namespace Private
{
template<typename CategoryFunc>
void Chaos::Private::ReorderParticleView
(
TArrayView < FPBDRigidParticleHandle * > & ParticlesView,
const CategoryFunc & CategoryTrigger,
int32 & CategoryOffset
)
}
}