Navigation
API > API/Runtime > API/Runtime/Chaos
Simple weight map just converting from per particle to per constraint values. Also holds low/high values, but these are multiplied against the map each time the operator[] is called.
| Name | FPBDFlatWeightMap |
| Type | class |
| Header File | /Engine/Source/Runtime/Experimental/Chaos/Public/Chaos/PBDFlatWeightMap.h |
| Include Path | #include "Chaos/PBDFlatWeightMap.h" |
Syntax
class FPBDFlatWeightMap
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
FPBDFlatWeightMap
(
const FSolverVec2& InWeightedValue, |
Chaos/PBDFlatWeightMap.h | ||
FPBDFlatWeightMap
(
const FSolverVec2& InWeightedValue, |
Weightmap particle constructor. | Chaos/PBDFlatWeightMap.h | |
FPBDFlatWeightMap
(
const FSolverVec2& InWeightedValue, |
Weightmap constraint constructor. | Chaos/PBDFlatWeightMap.h | |
FPBDFlatWeightMap
(
const FPBDFlatWeightMap& |
Chaos/PBDFlatWeightMap.h | ||
| Chaos/PBDFlatWeightMap.h |
Destructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
~FPBDFlatWeightMap() |
Chaos/PBDFlatWeightMap.h |
Variables
Protected
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| MapValues | TArray< FSolverReal > | Chaos/PBDFlatWeightMap.h | ||
| MapView | FPBDFlatWeightMapView | Chaos/PBDFlatWeightMap.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
FSolverReal GetHigh() |
Return the value at the High weight. | Chaos/PBDFlatWeightMap.h | |
FSolverReal GetLow() |
Return the value at the Low weight. | Chaos/PBDFlatWeightMap.h | |
TConstArrayView< FSolverReal > GetMapValues() |
Return the table of stiffnesses as a read only array. | Chaos/PBDFlatWeightMap.h | |
const FSolverVec2 & GetOffsetRange() |
Return the values set for this map as an Offset and Range (Low = OffsetRange[0], High = OffsetRange[0] + OffsetRange[1]) | Chaos/PBDFlatWeightMap.h | |
FSolverReal GetValue
(
int32 Index |
Chaos/PBDFlatWeightMap.h | ||
bool HasWeightMap() |
Return whether this object contains weight map values. | Chaos/PBDFlatWeightMap.h | |
int32 Num() |
Return the number of values stored in the weight map. | Chaos/PBDFlatWeightMap.h | |
void ReorderIndices
(
const TArray< int32 >& OrigToReorderedIndices |
Chaos/PBDFlatWeightMap.h | ||
void ReorderIndicesAndShrink
(
const TArray< int32 >& OrigToReorderedIndices, |
Reorder Indices based on Constraint reordering. | Chaos/PBDFlatWeightMap.h | |
void SetWeightedValue
(
const FSolverVec2& InWeightedValue |
Set the low and high values of the weight map. | Chaos/PBDFlatWeightMap.h |
Static
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
static TArray< FSolverReal > CalculateMapValues
(
const TConstArrayView< FRealSingle >& Multipliers, |
Chaos/PBDFlatWeightMap.h | ||
static TArray< FSolverReal > CalculateMapValues
(
const TConstArrayView< FRealSingle >& Multipliers, |
Chaos/PBDFlatWeightMap.h |
Operators
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
operator FSolverReal() |
Return the value when the weight map is not used. | Chaos/PBDFlatWeightMap.h | |
FSolverReal operator[]
(
int32 Index |
Lookup for the weighted value at the specified weight map index. | Chaos/PBDFlatWeightMap.h | |
| Chaos/PBDFlatWeightMap.h | |||
FPBDFlatWeightMap & operator=
(
const FPBDFlatWeightMap& |
Chaos/PBDFlatWeightMap.h |