Navigation
API > API/Runtime > API/Runtime/Chaos
| Name | FSolverParticles |
| Type | class |
| Header File | /Engine/Source/Runtime/Experimental/Chaos/Public/Chaos/PBDSoftsSolverParticles.h |
| Include Path | #include "Chaos/PBDSoftsSolverParticles.h" |
Syntax
class FSolverParticles : public Chaos::TDynamicParticles< FSolverReal, 3 >
Inheritance Hierarchy
- TArrayCollection → TParticles → TDynamicParticles → FSolverParticles
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
| Chaos/PBDSoftsSolverParticles.h | |||
FSolverParticles
(
const FSolverParticles& Other |
Chaos/PBDSoftsSolverParticles.h | ||
FSolverParticles
(
FSolverParticles&& Other |
Chaos/PBDSoftsSolverParticles.h |
Typedefs
| Name | Type | Remarks | Include Path |
|---|---|---|---|
| Base | TDynamicParticles< FSolverReal, 3 > | Chaos/PBDSoftsSolverParticles.h |
Variables
Protected
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| MPAndInvM | TArrayCollectionArray< FPAndInvM > | Note that InvM is copied from TDynamicParticles to here during ApplyPreSimulationTransforms (when P is updated) | Chaos/PBDSoftsSolverParticles.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
TArrayView< T > GetArrayView
(
const TArray< T >& Data |
Chaos/PBDSoftsSolverParticles.h | ||
TConstArrayView< T > GetConstArrayView
(
const TArray< T >& Data |
Convenience method to match interface of FSolverParticlesRange. | Chaos/PBDSoftsSolverParticles.h | |
const FSolverVec3 & GetP
(
const int32 index |
Chaos/PBDSoftsSolverParticles.h | ||
| Chaos/PBDSoftsSolverParticles.h | |||
const TArrayCollectionArray< FPAndInvM > & GetPAndInvM () |
Chaos/PBDSoftsSolverParticles.h | ||
const TArrayCollectionArray< FSolverVec3 > & GetVPrev () |
Chaos/PBDSoftsSolverParticles.h | ||
TArrayCollectionArray< FSolverVec3 > & GetVPrev () |
Warning: VPrev and Acceleration use the same arrays as Acceleration is only used by PBD and VPrev is only used by the linear solver. | Chaos/PBDSoftsSolverParticles.h | |
const FSolverVec3 & P
(
const int32 index |
Chaos/PBDSoftsSolverParticles.h | ||
FSolverVec3 & P
(
const int32 index |
Chaos/PBDSoftsSolverParticles.h | ||
| Chaos/PBDSoftsSolverParticles.h | |||
| Chaos/PBDSoftsSolverParticles.h | |||
void SetP
(
const int32 index, |
Chaos/PBDSoftsSolverParticles.h | ||
const FSolverVec3 & VPrev
(
const int32 Index |
When PBD is solving, V = last time step's V and we use the latest P to estimate velocity, (VelocityEstimate = (P - X)/Dt. After PBD (e.g., during implicit timestepping CG solve), V = current velocity estimate, VPrev = last time step's velocity Warning: VPrev and Acceleration use the same arrays as Acceleration is only used by PBD and VPrev is only used by the linear solver | Chaos/PBDSoftsSolverParticles.h | |
FSolverVec3 & VPrev
(
const int32 Index |
Chaos/PBDSoftsSolverParticles.h | ||
const FSolverVec3 & X
(
const int32 index |
Chaos/PBDSoftsSolverParticles.h | ||
FSolverVec3 & X
(
const int32 index |
Chaos/PBDSoftsSolverParticles.h |