Navigation
API > API/Runtime > API/Runtime/Chaos
A set of constraints that will ne solved in sequence on a single thread. This will usually be the constraints from several islands, but may be a sub set of constraints of a single island when coloring is enabled for that island.
| Name | FPBDIslandConstraintGroupSolver |
| Type | class |
| Header File | /Engine/Source/Runtime/Experimental/Chaos/Public/Chaos/Island/IslandGroup.h |
| Include Path | #include "Chaos/Island/IslandGroup.h" |
Syntax
class FPBDIslandConstraintGroupSolver : public Chaos::Private::FPBDConstraintGroupSolver
Inheritance Hierarchy
- FPBDConstraintGroupSolver → FPBDIslandConstraintGroupSolver
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
| Chaos/Island/IslandGroup.h | |||
| Chaos/Island/IslandGroup.h | |||
FPBDIslandConstraintGroupSolver
(
FPBDIslandManager& InIslandManager |
Init the island group | Chaos/Island/IslandGroup.h |
Constants
| Name | Type | Remarks | Include Path |
|---|---|---|---|
| NumExpectedConstraintTypes | int32 | Item counters used to initialize the solver containers. | Chaos/Island/IslandGroup.h |
Variables
Protected
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| IslandManager | FPBDIslandManager & | Chaos/Island/IslandGroup.h | ||
| Islands | TArray< FPBDIsland * > | Chaos/Island/IslandGroup.h | ||
| NumConstraints | int32 | Chaos/Island/IslandGroup.h | ||
| NumContainerConstraints | TArray< int32, TInlineAllocator< NumExpectedConstraintTypes > > | Chaos/Island/IslandGroup.h | ||
| NumParticles | int32 | Chaos/Island/IslandGroup.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
void AddIsland
(
FPBDIsland* Island |
Add island to the group | Chaos/Island/IslandGroup.h | |
const TArray< FPBDIsland * > & GetIslands() |
Return the islands within the group | Chaos/Island/IslandGroup.h | |
int32 GetNumConstraints () |
The number of constraints of all types in the island. | Chaos/Island/IslandGroup.h | |
int32 GetNumConstraints
(
const int32 ContainerId |
The number of constraints of the specific container type in the island. | Chaos/Island/IslandGroup.h | |
int32 GetNumParticles() |
The number of particles (dynamics, kinematic and static) in the island. | Chaos/Island/IslandGroup.h |
Overridden from FPBDConstraintGroupSolver
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual void SetIterationSettings
(
const FIterationSettings& InIterations |
Update the iteration settings based on the islands in the group, using at least as many as specified in InIterations | Chaos/Island/IslandGroup.h |
Protected
Overridden from FPBDConstraintGroupSolver
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual void AddConstraintsImpl() |
Allow a derived class to add constraints solvers. | Chaos/Island/IslandGroup.h | |
virtual void GatherBodiesImpl
(
const FReal Dt, |
Allow a derived class to populate some of the SolverBody data (Level and Color) | Chaos/Island/IslandGroup.h | |
virtual void ResetImpl() |
Allow a derived class to perform per-tick reset. | Chaos/Island/IslandGroup.h | |
virtual void SetConstraintSolverImpl
(
const int32 ContainerId |
Allow a derived class to add data based on the number of constraint types we need to support. | Chaos/Island/IslandGroup.h |
Operators
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
| Chaos/Island/IslandGroup.h | |||
| Chaos/Island/IslandGroup.h |