Base class for Constraint Rules that use the Contact Graph (which will be most optimized ones). 更多...
#include <PBDConstraintRule.h>
类 Chaos::FPBDConstraintGraphRule 继承关系图:Public 成员函数 | |
| virtual void | AddToGraph () |
| Add all constraints to the connectivity graph | |
| virtual bool | ApplyConstraints (const FReal Dt, int32 Island, const int32 It, const int32 NumIts) |
| Apply all corrections for constraints in the specified island. 更多... | |
| virtual bool | ApplyPushOut (const FReal Dt, int32 Island, const int32 It, const int32 NumIts) |
| Apply push out for constraints in the specified island. 更多... | |
| virtual void | DisableConstraints (const TSet< TGeometryParticleHandle< FReal, 3 > * > &RemovedParticles) |
| Disable all constraints associated with the specified particles | |
| virtual void | InitializeAccelerationStructures () |
| Initialize and performance-acceleration structures from the contact graph. 更多... | |
| virtual int32 | NumConstraints () const |
| The number of constraints in the collection | |
| virtual void | UpdateAccelerationStructures (const int32 Island) |
| Set up the perf-acceleration structures for the specified island. 更多... | |
| virtual void | UpdatePositionBasedState (const FReal Dt) |
| Called once per tick to allow constraint containers to create/alter their constraints based on particle position | |
Public 成员函数 继承自 Chaos::FConstraintRule | |
| int32 | GetPriority () const |
| Determines the order in which constraints are resolved. 更多... | |
| virtual void | PrepareIteration (FReal Dt) |
| Called once per iteration before Apply. 更多... | |
| virtual void | PrepareTick () |
| Called once per frame. 更多... | |
| void | SetPriority (const int32 InPriority) |
| Set the constraint resolution priority. 更多... | |
| virtual void | UnprepareIteration (FReal Dt) |
| Called once per iteration after Apply. 更多... | |
| virtual void | UnprepareTick () |
| Called once per frame. 更多... | |
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.
|
inlinevirtual |
Apply all corrections for constraints in the specified island.
Return true if more iterations are needed.
被 Chaos::TPBDConstraintIslandRule< T_CONSTRAINTS >, Chaos::TPBDConstraintIslandRule< Chaos::FPBDJointConstraints >, Chaos::TPBDConstraintIslandRule< FPBDSuspensionConstraints >, Chaos::TPBDConstraintIslandRule< FJointConstraints >, Chaos::TPBDConstraintColorRule< T_CONSTRAINTS > , 以及 Chaos::TPBDConstraintColorRule< FCollisionConstraints > 重载.
|
inlinevirtual |
Apply push out for constraints in the specified island.
Return true if more iterations are needed.
被 Chaos::TPBDConstraintIslandRule< T_CONSTRAINTS >, Chaos::TPBDConstraintIslandRule< Chaos::FPBDJointConstraints >, Chaos::TPBDConstraintIslandRule< FPBDSuspensionConstraints >, Chaos::TPBDConstraintIslandRule< FJointConstraints >, Chaos::TPBDConstraintColorRule< T_CONSTRAINTS > , 以及 Chaos::TPBDConstraintColorRule< FCollisionConstraints > 重载.
|
inlinevirtual |
Initialize and performance-acceleration structures from the contact graph.
Called once per evolution update
被 Chaos::TPBDConstraintIslandRule< T_CONSTRAINTS >, Chaos::TPBDConstraintIslandRule< Chaos::FPBDJointConstraints >, Chaos::TPBDConstraintIslandRule< FPBDSuspensionConstraints >, Chaos::TPBDConstraintIslandRule< FJointConstraints >, Chaos::TPBDConstraintColorRule< T_CONSTRAINTS > , 以及 Chaos::TPBDConstraintColorRule< FCollisionConstraints > 重载.
|
inlinevirtual |
Set up the perf-acceleration structures for the specified island.
May be called in parallel for islands
被 Chaos::TPBDConstraintIslandRule< T_CONSTRAINTS >, Chaos::TPBDConstraintIslandRule< Chaos::FPBDJointConstraints >, Chaos::TPBDConstraintIslandRule< FPBDSuspensionConstraints >, Chaos::TPBDConstraintIslandRule< FJointConstraints >, Chaos::TPBDConstraintColorRule< T_CONSTRAINTS > , 以及 Chaos::TPBDConstraintColorRule< FCollisionConstraints > 重载.