Navigation
API > API/Runtime > API/Runtime/Chaos > API/Runtime/Chaos/TWeightedLatticeImplicitObject
Description
Batch calls used by cloth. Note that if x is in an empty cell / outside the deformed lattice, Phi will be UE_BIG_NUMBER and Normal will be unchanged (BatchNormals will be resized using SetNumUninitialized, so it may be left uninitialized) GreatestInfluenceBone will not be calculated (and set to INDEX_NONE) if Phi is >= Thickness. GreatestInfluenceBone is an index into UsedBones All outputs will be unchanged (and possibly uninitialized) for points with InvM == 0.
| Name | BatchPhiWithNormalAndGreatestInfluenceBone |
| Type | function |
| Header File | /Engine/Source/Runtime/Experimental/Chaos/Public/Chaos/WeightedLatticeImplicitObject.h |
| Include Path | #include "Chaos/WeightedLatticeImplicitObject.h" |
| Source | /Engine/Source/Runtime/Experimental/Chaos/Private/Chaos/WeightedLatticeImplicitObject.cpp |
void BatchPhiWithNormalAndGreatestInfluenceBone
(
const TConstArrayView< Softs::FPAndInvM > PAndInvMArray,
const Softs::FSolverRigidTransform3 & SolverToThis,
const Softs::FSolverReal Thickness,
TArray < Softs::FSolverReal > & OutBatchPhis,
TArray < Softs::FSolverVec3 > & OutBatchNormals,
TArray < int32 > & OutBatchGreatestInfluenceBones
) const