Chaos::BuildFieldSamplePoints

Build the sample points positions and indices based on the resolution and filter type

Windows
MacOS
Linux

References

Module

Chaos

Header

/Engine/Source/Runtime/Experimental/Chaos/Public/PhysicsProxy/FieldSystemProxyHelper.h

Include

#include "PhysicsProxy/FieldSystemProxyHelper.h"

Syntax

namespace Chaos
{
    template<typename PhysicsProxy>
    bool Chaos::BuildFieldSamplePoints
    (
        PhysicsProxy * LocalProxy,
        Chaos::FPBDRigidsSolver * RigidSolver,
        const FFieldSystemCommand & FieldCommand,
        TArray< Chaos::FGeometryParticleHandle * > & ParticleHandles,
        TArray< FVector > & SamplePositions,
        TArray< FFieldContextIndex > & SampleIndices,
        EFieldResolutionType & PrevResolutionType,
        EFieldFilterType & PrevFilterType
    )
}

Remarks

Build the sample points positions and indices based on the resolution and filter type

Parameters

Parameter

Description

LocalProxy

Physics proxy from which to extract the particle handles

RigidSolver

Rigid solver owning the particles

FieldCommand

Field command used to extract the resolution and filter meta data

ParticleHandles

List of particle handles extracted from the field command meta data

SamplePositions

Positions of the extracted sample points

SampleIndices

Indices of the extracted sample points

PrevResolutionType

Resolution of the previous command

PrevFilterType

Filter of the previous command

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss