FPBDStiffness

Stiffness class for managing real time update to the weight map and low/high value ranges and to exponentiate the stiffness value depending on the iterations and Dt.

Windows
MacOS
Linux

References

Module

Chaos

Header

/Engine/Source/Runtime/Experimental/Chaos/Public/Chaos/PBDStiffness.h

Include

#include "Chaos/PBDStiffness.h"

Syntax

class FPBDStiffness

Remarks

Stiffness class for managing real time update to the weight map and low/high value ranges and to exponentiate the stiffness value depending on the iterations and Dt.

Constructors

Name Description

Public function

FPBDStiffness

(
    const TConstArrayView< FReal >& Mu...,
    const FVec2& InWeightedValue,
    int32 ParticleCount,
    int32 TableSize,
    FReal InParameterFitBase
)

Weightmap constructor.

Destructors

Name Description

Public function

~FPBDStiffness()

Functions

Name Description

Public function

void

 

ApplyValues

(
    const FReal Dt,
    const int32 NumIterations
)

Update the weight map table with the current simulation parameters.

Public function Const

FReal

 

GetHigh()

Return the exponential value at the High weight.

Public function Const

FReal

 

GetLow()

Return the exponential value at the Low weight.

Public function Const

const FVec2 ...

 

GetWeightedValue()

Return the low and high values set for this weight map.

Public function Const

bool

 

HasWeightMap()

Return whether this object contains weight map values.

Public function Const

int32

 

Num()

Return the number of values stored in the weight map.

Public function

void

 

SetWeightedValue

(
    const FVec2& InWeightedValue
)

Set the low and high values of the weight map.

Operators

Name Description

Public function Const

 

operator FReal()

Return the exponential stiffness value when the weight map is not used.

Public function Const

FReal

 

operator[]

(
    int32 Index
)

Lookup for the exponential weighted value at the specified weight map index.

Constants

Name

Description

ParameterFrequency

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