| FConstraintRule
|
Module |
|
Header |
/Engine/Source/Runtime/Experimental/Chaos/Public/Chaos/PBDConstraintRule.h |
Include |
#include "Chaos/PBDConstraintRule.h" |
class FPBDConstraintGraphRule : public Chaos::FConstraintRule
Base class for Constraint Rules that use the Contact Graph (which will be most optimized ones). The graph is shared among many/all constraint rules and is held external to the Graph rule itself. Each edge in the graph can be mapped back to a constraint controlled by the rule. To support this, each rule is assigned an ID which is stored alongside the constraint index in the graph.
Name | Description | |
---|---|---|
|
FPBDConstraintGraphRule ( |
Name | Description | |
---|---|---|
|
~FPBDConstraintGraphRule() |
Name | Description | ||
---|---|---|---|
|
AddToGraph() |
Add all constraints to the connectivity graph |
|
|
ApplyConstraints |
Apply all corrections for constraints in the specified island. |
|
|
ApplyPushOut |
Apply push out for constraints in the specified island. Return true if more iterations are needed. |
|
|
BindToGraph ( |
||
|
InitializeAccelerationStructures() |
Initialize and performance-acceleration structures from the contact graph. |
|
|
NumConstraints() |
The number of constraints in the collection |
|
|
RemoveConstraints ( |
Remove all constraints associated with the specified particles |
|
|
SetUseContactGraph ( |
||
|
UpdateAccelerationStructures ( |
Set up the perf-acceleration structures for the specified island. |
|
|
UpdatePositionBasedState ( |
Called once per tick to allow constraint containers to create/alter their constraints based on particle position |