Navigation
API > API/Runtime > API/Runtime/Chaos > API/Runtime/Chaos/FEmbeddedSpringConstraintFacade
Description
Set Indices and Weights for a single spring. Source Indices and Weights arrays are expected to be exactly EndPointNumIndices[0] long. Target Indices and Weights arrays are expected to be exactly EndPointNumIndices[1] long. Indices and Weights will be truncated or filled in with zeros if they aren't the expected length. Spring Indices are VerticesGroup indices.
| Name | SetIndicesAndWeights |
| Type | function |
| Header File | /Engine/Source/Runtime/Experimental/Chaos/Public/Chaos/CollectionEmbeddedSpringConstraintFacade.h |
| Include Path | #include "Chaos/CollectionEmbeddedSpringConstraintFacade.h" |
| Source | /Engine/Source/Runtime/Experimental/Chaos/Private/Chaos/CollectionEmbeddedSpringConstraintFacade.cpp |
void SetIndicesAndWeights
(
const int32 SpringIndex,
const TConstArrayView< int32 > & InSourceIndices,
const TConstArrayView< float > & InSourceWeights,
const TConstArrayView< int32 > & InTargetIndices,
const TConstArrayView< float > & InTargetWeights
)